22 AuthBuilderIdStartDeviceAuthorizationResponse ,
33 AuthCancelPkceAuthorizationResponse ,
44 AuthStartPkceAuthorizationResponse ,
5- // eslint-disable-next-line camelcase
65 AuthStatusResponse_AuthKind ,
76 AuthBuilderIdPollCreateTokenResponse_PollStatus as PollStatus ,
87} from "@amzn/fig-io-proto/fig" ;
@@ -21,11 +20,9 @@ export function status() {
2120 return sendAuthStatusRequest ( { } ) . then ( ( res ) => {
2221 let authKind : "BuilderId" | "IamIdentityCenter" | undefined ;
2322 switch ( res . authKind ) {
24- // eslint-disable-next-line camelcase
2523 case AuthStatusResponse_AuthKind . BUILDER_ID :
2624 authKind = "BuilderId" ;
2725 break ;
28- // eslint-disable-next-line camelcase
2926 case AuthStatusResponse_AuthKind . IAM_IDENTITY_CENTER :
3027 authKind = "IamIdentityCenter" ;
3128 break ;
@@ -84,12 +81,10 @@ export async function builderIdPollCreateToken({
8481 interval,
8582} : AuthBuilderIdStartDeviceAuthorizationResponse ) {
8683 for ( let i = 0 ; i < Math . ceil ( expiresIn / interval ) ; i += 1 ) {
87- // eslint-disable-next-line no-await-in-loop
8884 await new Promise ( ( resolve ) => {
8985 setTimeout ( resolve , interval * 1000 ) ;
9086 } ) ;
9187
92- // eslint-disable-next-line no-await-in-loop
9388 const pollStatus = await sendAuthBuilderIdPollCreateTokenRequest ( {
9489 authRequestId,
9590 } ) ;
0 commit comments