feat(plugins) : add new api api method : webauthn.getOrCreate
This commit is contained in:
committed by
Linus Rath
parent
622adc34de
commit
a08a9e9ed3
@@ -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]),
|
||||
|
||||
Reference in New Issue
Block a user