Skip to content

Commit 99fe655

Browse files
committed
Formatting
1 parent 5925c7e commit 99fe655

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

packages-exp/auth-exp/src/core/providers/oauth.test.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,17 @@ describe('core/providers/oauth', () => {
8787
...TEST_ID_TOKEN_RESPONSE,
8888
pendingToken: 'pending-token',
8989
oauthIdToken: 'id-token',
90-
providerId: 'oidc.oidctest',
90+
providerId: 'oidc.oidctest'
9191
},
9292
operationType: OperationType.SIGN_IN
9393
});
9494
const cred = OAuthProvider.credentialFromResult(userCred)!;
9595
expect(cred.idToken).to.eq('id-token');
9696
expect(cred.providerId).to.eq('oidc.oidctest');
9797
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+
);
99101
});
100102

101103
it('credentialFromError creates the cred from a tagged error', () => {

packages-exp/auth-exp/src/core/providers/oauth.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,15 @@ export class OAuthProvider implements externs.AuthProvider {
150150
}
151151

152152
/** 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 {
154156
_assert(params.idToken || params.accessToken, AuthErrorCode.ARGUMENT_ERROR);
155157
// For OAuthCredential, sign in method is same as providerId.
156158
return OAuthCredential._fromParams({
157159
...params,
158160
providerId: this.providerId,
159-
signInMethod: this.providerId,
161+
signInMethod: this.providerId
160162
});
161163
}
162164

@@ -274,7 +276,7 @@ export class OAuthProvider implements externs.AuthProvider {
274276
idToken: oauthIdToken,
275277
accessToken: oauthAccessToken,
276278
rawNonce: nonce,
277-
pendingToken,
279+
pendingToken
278280
});
279281
} catch (e) {
280282
return null;

packages-exp/auth-exp/src/model/id_token.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface IdTokenResponse {
5555
idToken?: IdToken;
5656
refreshToken?: string;
5757
expiresIn?: string;
58-
providerId?: ProviderId|string;
58+
providerId?: ProviderId | string;
5959

6060
// Used in AdditionalUserInfo
6161
displayName?: string | null;

0 commit comments

Comments
 (0)