mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
perf: passkey 支持Bitwarden
This commit is contained in:
@@ -230,7 +230,7 @@ export class PasskeyService extends BaseService<PasskeyEntity> {
|
||||
throw new AuthException("Passkey不存在");
|
||||
}
|
||||
|
||||
if (verification.counter <= passkey.counter) {
|
||||
if (verification.counter <= passkey.counter && passkey.counter > 0) {
|
||||
throw new AuthException("认证失败:计数器异常");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user