module.exports=[590620,(a,b,c)=>{"use strict";var d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,h={},i={refreshToken:()=>m};for(var j in i)d(h,j,{get:i[j],enumerable:!0});b.exports=((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of f(b))g.call(a,h)||void 0===h||d(a,h,{get:()=>b[h],enumerable:!(c=e(b,h))||c.enumerable});return a})(d({},"__esModule",{value:!0}),h);var k=a.r(898544),l=a.r(967426);async function m(a){let b=a?.project,c=a?.team;if(b||c){if(!b||!c){let a=(0,l.findProjectInfo)();b=b??a.projectId,c=c??a.teamId}}else{let a=(0,l.findProjectInfo)();b=a.projectId,c=a.teamId}if(!b)throw new k.VercelOidcTokenError("Failed to refresh OIDC token: No project specified. Try re-linking your project with `vc link`");let d=(0,l.loadToken)(b);if(!d||(0,l.isExpired)((0,l.getTokenPayload)(d.token),a?.expirationBufferMs)){let e=await (0,l.getVercelToken)({expirationBufferMs:a?.expirationBufferMs});if(!(d=await (0,l.getVercelOidcToken)(e,b,c)))throw new k.VercelOidcTokenError("Failed to refresh OIDC token");(0,l.saveToken)(d,b)}process.env.VERCEL_OIDC_TOKEN=d.token}}];

//# sourceMappingURL=0ozc_%40vercel_oidc_dist_token_021hy7c.js.map