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,
|
qrCode: onRequestQrCode,
|
||||||
onError: onAuthError,
|
onError: onAuthError,
|
||||||
initialMethod: platform === 'iOS' || platform === 'Android' ? 'phoneNumber' : 'qrCode',
|
initialMethod: platform === 'iOS' || platform === 'Android' ? 'phoneNumber' : 'qrCode',
|
||||||
shouldThrowIfUnauthorized: Boolean(sessionData),
|
shouldThrowIfUnauthorized: Object.values(sessionData?.keys || {}).length > 0,
|
||||||
webAuthToken,
|
webAuthToken,
|
||||||
webAuthTokenFailed: onWebAuthTokenFailed,
|
webAuthTokenFailed: onWebAuthTokenFailed,
|
||||||
mockScenario,
|
mockScenario,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user