File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ describe('client', () => {
78
78
Promise . resolve ( {
79
79
status : 200 ,
80
80
json : async ( ) => ( {
81
- attestationToken : 'fake-appcheck-token' ,
81
+ token : 'fake-appcheck-token' ,
82
82
ttl : '3.600s'
83
83
} )
84
84
} as Response )
@@ -189,7 +189,7 @@ describe('client', () => {
189
189
status : 200 ,
190
190
json : ( ) =>
191
191
Promise . resolve ( {
192
- attestationToken : 'fake-appcheck-token' ,
192
+ token : 'fake-appcheck-token' ,
193
193
ttl : 'NAN'
194
194
} )
195
195
} as Response )
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import { AppCheckTokenInternal } from './types';
30
30
* Response JSON returned from AppCheck server endpoint.
31
31
*/
32
32
interface AppCheckResponse {
33
- attestationToken : string ;
33
+ token : string ;
34
34
// timeToLive
35
35
ttl : string ;
36
36
}
@@ -101,7 +101,7 @@ export async function exchangeToken(
101
101
102
102
const now = Date . now ( ) ;
103
103
return {
104
- token : responseBody . attestationToken ,
104
+ token : responseBody . token ,
105
105
expireTimeMillis : now + timeToLiveAsNumber ,
106
106
issuedAtTimeMillis : now
107
107
} ;
You can’t perform that action at this time.
0 commit comments