We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 227cbbe commit 0336eccCopy full SHA for 0336ecc
2 files changed
src/NetDevPack.Fido2.EntityFramework.Store/Store/Fido2Store.cs
@@ -107,5 +107,10 @@ public async Task<bool> RemoveBySecretName(string name)
107
}
108
return false;
109
110
+
111
+ public async Task<bool> HasSecurityKey(string name)
112
+ {
113
+ return await _context.Fido2StoredCredential.AnyAsync(f => f.SecurityKeyName == name);
114
+ }
115
116
src/NetDevPack.Fido2.EntityFramework.Store/Store/IFido2Store.cs
@@ -20,4 +20,5 @@ public interface IFido2Store
20
Task<List<StoredCredentialDetail>> ListCredentialDetailsByUser(string username);
21
Task<bool> RemoveByPublicKeyId(byte[] publicKeyId);
22
Task<bool> RemoveBySecretName(string name);
23
+ Task<bool> HasSecurityKey(string name);
24
0 commit comments