Skip to content

Commit 2238336

Browse files
committed
Formatting
1 parent 6a4953c commit 2238336

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

packages-exp/auth-exp/src/api/authentication/email_link.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export async function signInWithEmailLink(
3939
>(auth, HttpMethod.POST, Endpoint.SIGN_IN_WITH_EMAIL_LINK, request);
4040
}
4141

42-
export interface SignInWithEmailLinkForLinkingRequest extends SignInWithEmailLinkRequest {
42+
export interface SignInWithEmailLinkForLinkingRequest
43+
extends SignInWithEmailLinkRequest {
4344
idToken: string;
4445
}
4546

@@ -51,4 +52,4 @@ export async function signInWithEmailLinkForLinking(
5152
SignInWithEmailLinkForLinkingRequest,
5253
SignInWithEmailLinkResponse
5354
>(auth, HttpMethod.POST, Endpoint.SIGN_IN_WITH_EMAIL_LINK, request);
54-
}
55+
}

packages-exp/auth-exp/src/core/credentials/email.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ describe('core/credentials/email', () => {
9898
localId: serverUser.localId!
9999
});
100100

101-
const idTokenResponse = await credential._linkToIdToken(auth, 'id-token-2');
101+
const idTokenResponse = await credential._linkToIdToken(
102+
auth,
103+
'id-token-2'
104+
);
102105
expect(idTokenResponse.idToken).to.eq('id-token');
103106
expect(idTokenResponse.refreshToken).to.eq('refresh-token');
104107
expect(idTokenResponse.expiresIn).to.eq('1234');
@@ -176,7 +179,10 @@ describe('core/credentials/email', () => {
176179

177180
describe('#_linkToIdToken', () => {
178181
it('calls sign in with the new token', async () => {
179-
const idTokenResponse = await credential._linkToIdToken(auth, 'id-token-2');
182+
const idTokenResponse = await credential._linkToIdToken(
183+
auth,
184+
'id-token-2'
185+
);
180186
expect(idTokenResponse.idToken).to.eq('id-token');
181187
expect(idTokenResponse.refreshToken).to.eq('refresh-token');
182188
expect(idTokenResponse.expiresIn).to.eq('1234');

packages-exp/auth-exp/src/core/credentials/email.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import * as externs from '@firebase/auth-types-exp';
2020
import { updateEmailPassword } from '../../api/account_management/email_and_password';
2121
import { signInWithPassword } from '../../api/authentication/email_and_password';
2222
import {
23-
signInWithEmailLink, signInWithEmailLinkForLinking
23+
signInWithEmailLink,
24+
signInWithEmailLinkForLinking
2425
} from '../../api/authentication/email_link';
2526
import { Auth } from '../../model/auth';
2627
import { IdTokenResponse } from '../../model/id_token';

0 commit comments

Comments
 (0)