File tree 2 files changed +3
-5
lines changed
storage/src/implementation
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,7 @@ export function registerDatabase(variant?: string): void {
38
38
( container , { instanceIdentifier : url } ) => {
39
39
const app = container . getProvider ( 'app-exp' ) . getImmediate ( ) ! ;
40
40
const authProvider = container . getProvider ( 'auth-internal' ) ;
41
- // App check is unsupported in Node.
42
- const appCheckProvider =
43
- variant === 'node'
44
- ? undefined
45
- : container . getProvider ( 'app-check-internal' ) ;
41
+ const appCheckProvider = container . getProvider ( 'app-check-internal' ) ;
46
42
return repoManagerDatabaseFromApp (
47
43
app ,
48
44
authProvider ,
Original file line number Diff line number Diff line change @@ -106,6 +106,8 @@ export function sharedErrorHandler(
106
106
let newErr ;
107
107
if ( xhr . getStatus ( ) === 401 ) {
108
108
if (
109
+ // This exact message string is the only consistent part of the
110
+ // server's error response that identifies it as an App Check error.
109
111
xhr . getResponseText ( ) . includes ( 'Firebase App Check token is invalid' )
110
112
) {
111
113
newErr = unauthorizedApp ( ) ;
You can’t perform that action at this time.
0 commit comments