@@ -56,7 +56,7 @@ describe('AppCheckApiClient', () => {
5656 const TEST_TOKEN_TO_EXCHANGE = 'signed-custom-token' ;
5757
5858 const TEST_RESPONSE = {
59- attestationToken : 'token' ,
59+ token : 'token' ,
6060 ttl : '3s'
6161 } ;
6262
@@ -203,11 +203,11 @@ describe('AppCheckApiClient', () => {
203203 stubs . push ( stub ) ;
204204 return apiClient . exchangeToken ( TEST_TOKEN_TO_EXCHANGE , APP_ID )
205205 . then ( ( resp ) => {
206- expect ( resp . token ) . to . deep . equal ( TEST_RESPONSE . attestationToken ) ;
206+ expect ( resp . token ) . to . deep . equal ( TEST_RESPONSE . token ) ;
207207 expect ( resp . ttlMillis ) . to . deep . equal ( 3000 ) ;
208208 expect ( stub ) . to . have . been . calledOnce . and . calledWith ( {
209209 method : 'POST' ,
210- url : `https://firebaseappcheck.googleapis.com/v1beta /projects/test-project/apps/${ APP_ID } :exchangeCustomToken` ,
210+ url : `https://firebaseappcheck.googleapis.com/v1 /projects/test-project/apps/${ APP_ID } :exchangeCustomToken` ,
211211 headers : EXPECTED_HEADERS ,
212212 data : { customToken : TEST_TOKEN_TO_EXCHANGE }
213213 } ) ;
@@ -229,7 +229,7 @@ describe('AppCheckApiClient', () => {
229229 stubs . push ( stub ) ;
230230 return apiClient . exchangeToken ( TEST_TOKEN_TO_EXCHANGE , APP_ID )
231231 . then ( ( resp ) => {
232- expect ( resp . token ) . to . deep . equal ( response . attestationToken ) ;
232+ expect ( resp . token ) . to . deep . equal ( response . token ) ;
233233 expect ( resp . ttlMillis ) . to . deep . equal ( ttlMillis ) ;
234234 } ) ;
235235 } ) ;
0 commit comments