-
Notifications
You must be signed in to change notification settings - Fork 894
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
renkelvin
authored
Apr 13, 2023
1 parent
b66908d
commit 6b8e0c1
Showing
32 changed files
with
1,970 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@firebase/auth': minor | ||
'firebase': minor | ||
--- | ||
|
||
[feature] Add reCAPTCHA enterprise support. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,12 @@ import chaiAsPromised from 'chai-as-promised'; | |
import { ActionCodeOperation } from '../../model/public_types'; | ||
import { FirebaseError } from '@firebase/util'; | ||
|
||
import { Endpoint, HttpHeader } from '../'; | ||
import { | ||
Endpoint, | ||
HttpHeader, | ||
RecaptchaClientType, | ||
RecaptchaVersion | ||
} from '../'; | ||
import { mockEndpoint } from '../../../test/helpers/api/helper'; | ||
import { testAuth, TestAuth } from '../../../test/helpers/mock_auth'; | ||
import * as mockFetch from '../../../test/helpers/mock_fetch'; | ||
|
@@ -44,7 +49,10 @@ describe('api/authentication/signInWithPassword', () => { | |
const request = { | ||
returnSecureToken: true, | ||
email: '[email protected]', | ||
password: 'my-password' | ||
password: 'my-password', | ||
captchaResponse: 'recaptcha-token', | ||
clientType: RecaptchaClientType.WEB, | ||
recaptchaVersion: RecaptchaVersion.ENTERPRISE | ||
}; | ||
|
||
let auth: TestAuth; | ||
|
@@ -187,7 +195,10 @@ describe('api/authentication/sendEmailVerification', () => { | |
describe('api/authentication/sendPasswordResetEmail', () => { | ||
const request: PasswordResetRequest = { | ||
requestType: ActionCodeOperation.PASSWORD_RESET, | ||
email: '[email protected]' | ||
email: '[email protected]', | ||
captchaResp: 'recaptcha-token', | ||
clientType: RecaptchaClientType.WEB, | ||
recaptchaVersion: RecaptchaVersion.ENTERPRISE | ||
}; | ||
|
||
let auth: TestAuth; | ||
|
@@ -245,7 +256,10 @@ describe('api/authentication/sendPasswordResetEmail', () => { | |
describe('api/authentication/sendSignInLinkToEmail', () => { | ||
const request: EmailSignInRequest = { | ||
requestType: ActionCodeOperation.EMAIL_SIGNIN, | ||
email: '[email protected]' | ||
email: '[email protected]', | ||
captchaResp: 'recaptcha-token', | ||
clientType: RecaptchaClientType.WEB, | ||
recaptchaVersion: RecaptchaVersion.ENTERPRISE | ||
}; | ||
|
||
let auth: TestAuth; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.