Skip to content

Commit 7209f6a

Browse files
committed
Update JSON object containing the FAC token
1 parent 7b38685 commit 7209f6a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/app-check/src/client.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('client', () => {
7878
Promise.resolve({
7979
status: 200,
8080
json: async () => ({
81-
attestationToken: 'fake-appcheck-token',
81+
token: 'fake-appcheck-token',
8282
ttl: '3.600s'
8383
})
8484
} as Response)
@@ -189,7 +189,7 @@ describe('client', () => {
189189
status: 200,
190190
json: () =>
191191
Promise.resolve({
192-
attestationToken: 'fake-appcheck-token',
192+
token: 'fake-appcheck-token',
193193
ttl: 'NAN'
194194
})
195195
} as Response)

packages/app-check/src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { AppCheckTokenInternal } from './types';
3030
* Response JSON returned from AppCheck server endpoint.
3131
*/
3232
interface AppCheckResponse {
33-
attestationToken: string;
33+
token: string;
3434
// timeToLive
3535
ttl: string;
3636
}
@@ -101,7 +101,7 @@ export async function exchangeToken(
101101

102102
const now = Date.now();
103103
return {
104-
token: responseBody.attestationToken,
104+
token: responseBody.token,
105105
expireTimeMillis: now + timeToLiveAsNumber,
106106
issuedAtTimeMillis: now
107107
};

0 commit comments

Comments
 (0)