Passkey administration against the Supabase Auth API.
Manages the passkeys registered by users, used when the Supabase project has the passkeys (WebAuthn) authentication method enabled.
Like the rest of supabase.auth.admin, every function requires a client
configured with the project's service-role key.
(require '[supabase.core.client :as client]
'[supabase.auth.admin.passkey :as passkey])
(def c (client/make-client "https://abc.supabase.co" "service-role-key"))
(passkey/list-passkeys c "<user-id>")
(passkey/delete-passkey c "<user-id>" "<passkey-id>")
Each function returns {:status :body :headers} on success or an anomaly
map on failure.
Passkey administration against the Supabase Auth API.
Manages the passkeys registered by users, used when the Supabase project
has the passkeys (WebAuthn) authentication method enabled.
Like the rest of `supabase.auth.admin`, every function requires a client
configured with the project's **service-role** key.
## Example
(require '[supabase.core.client :as client]
'[supabase.auth.admin.passkey :as passkey])
(def c (client/make-client "https://abc.supabase.co" "service-role-key"))
(passkey/list-passkeys c "<user-id>")
(passkey/delete-passkey c "<user-id>" "<passkey-id>")
Each function returns `{:status :body :headers}` on success or an anomaly
map on failure.(delete-passkey client user-id passkey-id)Deletes the passkey passkey-id of user user-id. Permanent; the
credential can no longer sign in.
(delete-passkey client "<user-id>" "<passkey-id>")
Deletes the passkey `passkey-id` of user `user-id`. Permanent; the
credential can no longer sign in.
## Example
(delete-passkey client "<user-id>" "<passkey-id>")(list-passkeys client user-id)Lists the passkeys registered for user user-id. The response body is a
vector of passkeys — see supabase.auth.specs/Passkey for the shape.
(list-passkeys client "<user-id>")
Lists the passkeys registered for user `user-id`. The response body is a
vector of passkeys — see `supabase.auth.specs/Passkey` for the shape.
## Example
(list-passkeys client "<user-id>")cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |