File tree 3 files changed +10
-6
lines changed
packages-exp/auth-exp/src
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -87,15 +87,17 @@ describe('core/providers/oauth', () => {
87
87
...TEST_ID_TOKEN_RESPONSE ,
88
88
pendingToken : 'pending-token' ,
89
89
oauthIdToken : 'id-token' ,
90
- providerId : 'oidc.oidctest' ,
90
+ providerId : 'oidc.oidctest'
91
91
} ,
92
92
operationType : OperationType . SIGN_IN
93
93
} ) ;
94
94
const cred = OAuthProvider . credentialFromResult ( userCred ) ! ;
95
95
expect ( cred . idToken ) . to . eq ( 'id-token' ) ;
96
96
expect ( cred . providerId ) . to . eq ( 'oidc.oidctest' ) ;
97
97
expect ( cred . signInMethod ) . to . eq ( 'oidc.oidctest' ) ;
98
- expect ( ( cred . toJSON ( ) as Record < string , string > ) . pendingToken ) . to . eq ( 'pending-token' ) ;
98
+ expect ( ( cred . toJSON ( ) as Record < string , string > ) . pendingToken ) . to . eq (
99
+ 'pending-token'
100
+ ) ;
99
101
} ) ;
100
102
101
103
it ( 'credentialFromError creates the cred from a tagged error' , ( ) => {
Original file line number Diff line number Diff line change @@ -150,13 +150,15 @@ export class OAuthProvider implements externs.AuthProvider {
150
150
}
151
151
152
152
/** An internal credential method that accepts more permissive options */
153
- private _credential ( params : OAuthCredentialOptions | OAuthCredentialParams ) : externs . OAuthCredential {
153
+ private _credential (
154
+ params : OAuthCredentialOptions | OAuthCredentialParams
155
+ ) : externs . OAuthCredential {
154
156
_assert ( params . idToken || params . accessToken , AuthErrorCode . ARGUMENT_ERROR ) ;
155
157
// For OAuthCredential, sign in method is same as providerId.
156
158
return OAuthCredential . _fromParams ( {
157
159
...params ,
158
160
providerId : this . providerId ,
159
- signInMethod : this . providerId ,
161
+ signInMethod : this . providerId
160
162
} ) ;
161
163
}
162
164
@@ -274,7 +276,7 @@ export class OAuthProvider implements externs.AuthProvider {
274
276
idToken : oauthIdToken ,
275
277
accessToken : oauthAccessToken ,
276
278
rawNonce : nonce ,
277
- pendingToken,
279
+ pendingToken
278
280
} ) ;
279
281
} catch ( e ) {
280
282
return null ;
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export interface IdTokenResponse {
55
55
idToken ?: IdToken ;
56
56
refreshToken ?: string ;
57
57
expiresIn ?: string ;
58
- providerId ?: ProviderId | string ;
58
+ providerId ?: ProviderId | string ;
59
59
60
60
// Used in AdditionalUserInfo
61
61
displayName ?: string | null ;
You can’t perform that action at this time.
0 commit comments