mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-23 20:18:42 +08:00
feat: console.error when firebase configed error
This commit is contained in:
@@ -70,9 +70,6 @@ class Token {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async refreshToken(token?: string) {
|
async refreshToken(token?: string) {
|
||||||
if (!this._refreshToken && !token) {
|
|
||||||
throw new Error('No authorization token.');
|
|
||||||
}
|
|
||||||
if (!this._padding) {
|
if (!this._padding) {
|
||||||
this._padding = login({
|
this._padding = login({
|
||||||
type: 'Refresh',
|
type: 'Refresh',
|
||||||
@@ -194,6 +191,7 @@ export const getAuthorizer = () => {
|
|||||||
return [signInWithGoogle, onAuthStateChanged] as const;
|
return [signInWithGoogle, onAuthStateChanged] as const;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
getLogger('getAuthorizer')(e);
|
getLogger('getAuthorizer')(e);
|
||||||
|
console.error('getAuthorizer', e);
|
||||||
return [] as const;
|
return [] as const;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user