feat: console.error when firebase configed error

This commit is contained in:
tzhangchi 2023-01-13 22:34:11 +08:00
parent 863ebf8360
commit 9415f46ce5

View File

@ -70,9 +70,6 @@ class Token {
}
async refreshToken(token?: string) {
if (!this._refreshToken && !token) {
throw new Error('No authorization token.');
}
if (!this._padding) {
this._padding = login({
type: 'Refresh',
@ -194,6 +191,7 @@ export const getAuthorizer = () => {
return [signInWithGoogle, onAuthStateChanged] as const;
} catch (e) {
getLogger('getAuthorizer')(e);
console.error('getAuthorizer', e);
return [] as const;
}
};