Skip to content

Commit 2ca507c

Browse files
committed
PR Feedback
1 parent e378140 commit 2ca507c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/app-check-interop-types/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export interface FirebaseAppCheckInternal {
2020
// is present. Returns null if no token is present and no token requests are in-flight.
2121
getToken(forceRefresh?: boolean): Promise<AppCheckTokenResult>;
2222

23-
// Gets a limited use Firebase App Check token. This method should be used
24-
// only if you need to authorize requests to a non-Firebase backend.
23+
// Always returns a fresh limited-use token suitable for Replay Protection.
24+
// The returned token must be used and consumed as soon as possible.
2525
getLimitedUseToken(): Promise<AppCheckTokenResult>;
2626

2727
// Registers a listener to changes in the token state. There can be more than one listener

packages/functions/src/context.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ export class ContextProvider {
140140
async getContext(limitedUseAppCheckTokens?: boolean): Promise<Context> {
141141
const authToken = await this.getAuthToken();
142142
const messagingToken = await this.getMessagingToken();
143-
const appCheckToken = await this.getAppCheckToken(
144-
limitedUseAppCheckTokens
145-
);
143+
const appCheckToken = await this.getAppCheckToken(limitedUseAppCheckTokens);
146144
return { authToken, messagingToken, appCheckToken };
147145
}
148146
}

0 commit comments

Comments
 (0)