Auth: Fix error on first load (#6215)

This commit is contained in:
zubiden 2025-09-19 14:34:36 +02:00 committed by Alexander Zinchuk
parent 8a7856a09f
commit 1447bfac27

View File

@ -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,