From 5c8e9a254e2942e2355ff8aa7206e1970e4eb3a0 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sun, 13 Nov 2022 18:17:21 +0400 Subject: [PATCH] Introduce Web Token login (follow-up) --- src/lib/gramjs/client/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/gramjs/client/auth.ts b/src/lib/gramjs/client/auth.ts index a01934ee4..c7aae74df 100644 --- a/src/lib/gramjs/client/auth.ts +++ b/src/lib/gramjs/client/auth.ts @@ -88,7 +88,7 @@ async function signInUserWithWebToken( } } catch (err: any) { authParams.webAuthTokenFailed(); - client._log.error('Failed to login with web token', err); + client._log.error(`Failed to login with web token: ${err}`); if (err.message === 'SESSION_PASSWORD_NEEDED') { return signInWithPassword(client, apiCredentials, authParams); } else {