Skip to content

Commit 08eb441

Browse files
committed
PR feedback
1 parent f88901c commit 08eb441

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages-exp/auth-exp/src/core/strategies/email_and_password.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ describe('core/strategies/email_and_password/createUserWithEmailAndPassword', ()
354354
'some-email',
355355
'some-password'
356356
);
357-
expect(credential?.providerId).to.eq(ProviderId.PASSWORD);
358-
expect(credential?.signInMethod).to.eq(SignInMethod.EMAIL_PASSWORD);
357+
expect(credential!.providerId).to.eq(ProviderId.PASSWORD);
358+
expect(credential!.signInMethod).to.eq(SignInMethod.EMAIL_PASSWORD);
359359
expect(operationType).to.eq(OperationType.SIGN_IN);
360360
expect(user.uid).to.eq(serverUser.localId);
361361
expect(user.isAnonymous).to.be.false;
@@ -389,8 +389,8 @@ describe('core/strategies/email_and_password/signInWithEmailAndPassword', () =>
389389
user,
390390
operationType
391391
} = await signInWithEmailAndPassword(auth, 'some-email', 'some-password');
392-
expect(credential?.providerId).to.eq(ProviderId.PASSWORD);
393-
expect(credential?.signInMethod).to.eq(SignInMethod.EMAIL_PASSWORD);
392+
expect(credential!.providerId).to.eq(ProviderId.PASSWORD);
393+
expect(credential!.signInMethod).to.eq(SignInMethod.EMAIL_PASSWORD);
394394
expect(operationType).to.eq(OperationType.SIGN_IN);
395395
expect(user.uid).to.eq(serverUser.localId);
396396
expect(user.isAnonymous).to.be.false;

packages-exp/auth-exp/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export {
4040
confirmPasswordReset,
4141
checkActionCode,
4242
verifyPasswordResetCode,
43+
createUserWithEmailAndPassword,
4344
signInWithEmailAndPassword
4445
} from './core/strategies/email_and_password';
4546
export {

0 commit comments

Comments
 (0)