feat(plugins) : add new api api method : webauthn.getOrCreate

This commit is contained in:
Paulhenry Saux
2026-07-13 21:17:45 +02:00
committed by Linus Rath
parent 622adc34de
commit a08a9e9ed3
3 changed files with 118 additions and 0 deletions
+3
View File
@@ -165,6 +165,9 @@ function buildPluginApi(manifest: PluginManifest) {
version: manifest.version,
settings: { ...manifest.settings },
},
webauthn: {
getOrCreate: (masterCredentialIdBytes?: number[], name?: string, displayName?: string) => callApi('webauthn.getOrCreate', [masterCredentialIdBytes, name, displayName], 0)
},
storage: {
get: (key: string) => callApi('storage.get', [key]),
set: (key: string, value: unknown) => callApi('storage.set', [key, value]),