Skip to content

Commit af0ab7a

Browse files
Merge branch 'master' into lm-taskq-api
2 parents f714731 + 844479a commit af0ab7a

14 files changed

+308
-136
lines changed

etc/firebase-admin.auth.api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export abstract class BaseAuth {
5555
generateEmailVerificationLink(email: string, actionCodeSettings?: ActionCodeSettings): Promise<string>;
5656
generatePasswordResetLink(email: string, actionCodeSettings?: ActionCodeSettings): Promise<string>;
5757
generateSignInWithEmailLink(email: string, actionCodeSettings: ActionCodeSettings): Promise<string>;
58+
generateVerifyAndChangeEmailLink(email: string, newEmail: string, actionCodeSettings?: ActionCodeSettings): Promise<string>;
5859
getProviderConfig(providerId: string): Promise<AuthProviderConfig>;
5960
getUser(uid: string): Promise<UserRecord>;
6061
getUserByEmail(email: string): Promise<UserRecord>;

package-lock.json

Lines changed: 97 additions & 112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
"http-message-parser": "^0.0.34",
215215
"lodash": "^4.17.15",
216216
"minimist": "^1.2.6",
217-
"mocha": "^9.1.2",
217+
"mocha": "^10.0.0",
218218
"mz": "^2.7.0",
219219
"nock": "^13.0.0",
220220
"npm-run-all": "^4.1.5",

src/app-check/app-check-api-client-internal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import * as validator from '../utils/validator';
2626
import { AppCheckToken } from './app-check-api'
2727

2828
// App Check backend constants
29-
const FIREBASE_APP_CHECK_V1_API_URL_FORMAT = 'https://firebaseappcheck.googleapis.com/v1beta/projects/{projectId}/apps/{appId}:exchangeCustomToken';
29+
const FIREBASE_APP_CHECK_V1_API_URL_FORMAT = 'https://firebaseappcheck.googleapis.com/v1/projects/{projectId}/apps/{appId}:exchangeCustomToken';
3030

3131
const FIREBASE_APP_CHECK_CONFIG_HEADERS = {
3232
'X-Firebase-Client': `fire-admin-node/${utils.getSdkVersion()}`
@@ -144,7 +144,7 @@ export class AppCheckApiClient {
144144
* @returns An AppCheckToken instance.
145145
*/
146146
private toAppCheckToken(resp: HttpResponse): AppCheckToken {
147-
const token = resp.data.attestationToken;
147+
const token = resp.data.token;
148148
// `ttl` is a string with the suffix "s" preceded by the number of seconds,
149149
// with nanoseconds expressed as fractional seconds.
150150
const ttlMillis = this.stringToMilliseconds(resp.data.ttl);

src/app-check/token-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const ONE_MINUTE_IN_MILLIS = ONE_MINUTE_IN_SECONDS * 1000;
3131
const ONE_DAY_IN_MILLIS = 24 * 60 * 60 * 1000;
3232

3333
// Audience to use for Firebase App Check Custom tokens
34-
const FIREBASE_APP_CHECK_AUDIENCE = 'https://firebaseappcheck.googleapis.com/google.firebase.appcheck.v1beta.TokenExchangeService';
34+
const FIREBASE_APP_CHECK_AUDIENCE = 'https://firebaseappcheck.googleapis.com/google.firebase.appcheck.v1.TokenExchangeService';
3535

3636
/**
3737
* Class for generating Firebase App Check tokens.

src/app-check/token-verifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { DecodedAppCheckToken } from './app-check-api'
2626
import { App } from '../app';
2727

2828
const APP_CHECK_ISSUER = 'https://firebaseappcheck.googleapis.com/';
29-
const JWKS_URL = 'https://firebaseappcheck.googleapis.com/v1beta/jwks';
29+
const JWKS_URL = 'https://firebaseappcheck.googleapis.com/v1/jwks';
3030

3131
/**
3232
* Class for verifying Firebase App Check tokens.

0 commit comments

Comments
 (0)