File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ export async function getToken(
128
128
shouldCallListeners = true ;
129
129
}
130
130
const tokenFromDebugExchange : AppCheckTokenInternal =
131
- await state . exchangeTokenPromise ! ;
131
+ await state . exchangeTokenPromise ;
132
132
// Write debug token to indexedDB.
133
133
await writeTokenToStorage ( app , tokenFromDebugExchange ) ;
134
134
// Write debug token to state.
@@ -171,7 +171,7 @@ export async function getToken(
171
171
// If token is undefined, there must be an error.
172
172
// Return a dummy token along with the error.
173
173
interopTokenResult = makeDummyTokenResult ( error ! ) ;
174
- } else if ( error && isValid ( token ) ) {
174
+ } else if ( error ) {
175
175
if ( isValid ( token ) ) {
176
176
// It's also possible a valid token exists, but there's also an error.
177
177
// (Such as if the token is almost expired, tries to refresh, and
You can’t perform that action at this time.
0 commit comments