mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 17:42:49 -05:00
Prevent error when using WebAuthn as non premium user (#1331)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user