Auth: Fix error on first load (#6215)
This commit is contained in:
parent
8a7856a09f
commit
1447bfac27
@ -127,7 +127,7 @@ export async function init(initialArgs: ApiInitialArgs, onConnected?: NoneToVoid
|
||||
qrCode: onRequestQrCode,
|
||||
onError: onAuthError,
|
||||
initialMethod: platform === 'iOS' || platform === 'Android' ? 'phoneNumber' : 'qrCode',
|
||||
shouldThrowIfUnauthorized: Boolean(sessionData),
|
||||
shouldThrowIfUnauthorized: Object.values(sessionData?.keys || {}).length > 0,
|
||||
webAuthToken,
|
||||
webAuthTokenFailed: onWebAuthTokenFailed,
|
||||
mockScenario,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user