File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
packages/firestore/src/api Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -407,22 +407,15 @@ export class FirstPartyToken implements Token {
407
407
private readonly authTokenFactory : AuthTokenFactory | null
408
408
) { }
409
409
410
- /** Gets an authorization token, using a provided factory function, or falling back to First Party GAPI. */
410
+ /**
411
+ * Gets an authorization token, using a provided factory function, or return
412
+ * null.
413
+ */
411
414
private getAuthToken ( ) : string | null {
412
415
if ( this . authTokenFactory ) {
413
416
return this . authTokenFactory ( ) ;
414
417
} else {
415
- // Make sure this really is a Gapi client.
416
- hardAssert (
417
- ! ! (
418
- typeof this . gapi === 'object' &&
419
- this . gapi !== null &&
420
- this . gapi [ 'auth' ] &&
421
- this . gapi [ 'auth' ] [ 'getAuthHeaderValueForFirstParty' ]
422
- ) ,
423
- 'unexpected gapi interface'
424
- ) ;
425
- return this . gapi ! [ 'auth' ] [ 'getAuthHeaderValueForFirstParty' ] ( [ ] ) ;
418
+ return null ;
426
419
}
427
420
}
428
421
You can’t perform that action at this time.
0 commit comments