Introduce Web Token login (follow-up)
This commit is contained in:
parent
bbc0f2e871
commit
5c8e9a254e
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user