Skip to content

Commit 626143e

Browse files
committed
Update error message
1 parent 5745e24 commit 626143e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages-exp/auth-exp/src/core/errors.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,10 @@ function _debugErrorMap(): ErrorMap<AuthErrorCode> {
349349
[AuthErrorCode.WEB_STORAGE_UNSUPPORTED]:
350350
'This browser is not supported or 3rd party cookies and data may be disabled.',
351351
[AuthErrorCode.ALREADY_INITIALIZED]:
352-
'Auth can only be initialized once per app.'
352+
'initializeAuth() has already been called with ' +
353+
'different options. To avoid this error, call initializeAuth() with the ' +
354+
'same options as when it was originally called, or call getAuth() to return the' +
355+
' already initialized instance.'
353356
};
354357
}
355358

0 commit comments

Comments
 (0)