1
0
mirror of https://github.com/bitwarden/server synced 2026-01-05 01:53:17 +00:00

Prevent error when using WebAuthn as non premium user (#1331)

This commit is contained in:
Oscar Hinton
2021-05-17 09:39:40 +02:00
committed by GitHub
parent 785705342c
commit 4258076bae
2 changed files with 6 additions and 0 deletions

View File

@@ -433,6 +433,11 @@ namespace Bit.Core.IdentityServer
}
else if (type == TwoFactorProviderType.WebAuthn)
{
if (token == null)
{
return null;
}
return JsonSerializer.Deserialize<Dictionary<string, object>>(token);
}
else if (type == TwoFactorProviderType.Email)