Dominevo
ReferenceHTTP API

userPasskeys

The userPasskeys router: 10 methods of the user-passkeys capability, with tier, scope, input and output.

Capability user-passkeys · scope system · mode collection · source packages/types/src/capabilities/user-passkeys.cap.ts:69.

Every method is called at /trpc/userPasskeys.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
beginRegistrationmutationadminadmin onlyno
finishRegistrationmutationadminadmin onlyno
beginAuthenticationmutationadminadmin onlyno
finishAuthenticationmutationadminadmin onlyno
beginDiscoverableAuthenticationmutationadminadmin onlyno
finishDiscoverableAuthenticationmutationadminadmin onlyno
listPasskeysqueryadminadmin onlyno
removePasskeymutationadminadmin onlyno
getSecondFactorPreferencequeryadminadmin onlyno
setSecondFactorPreferencemutationadminadmin onlyno

userPasskeys.beginRegistration

  • Kind: mutation — POST /trpc/userPasskeys.beginRegistration
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=userPasskeys.beginRegistration on your hub

Input

{ userId: string; username: string }

Output

{ optionsJSON: Record<string, unknown> }

userPasskeys.finishRegistration

  • Kind: mutation — POST /trpc/userPasskeys.finishRegistration
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=userPasskeys.finishRegistration on your hub

Input

{ userId: string; response: Record<string, unknown>; label: string }

Output

{ success: true; credentialId: string }

userPasskeys.beginAuthentication

  • Kind: mutation — POST /trpc/userPasskeys.beginAuthentication
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=userPasskeys.beginAuthentication on your hub

Input

{ userId?: string }

Output

{ optionsJSON: Record<string, unknown> }

userPasskeys.finishAuthentication

  • Kind: mutation — POST /trpc/userPasskeys.finishAuthentication
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=userPasskeys.finishAuthentication on your hub

Input

{ userId: string; response: Record<string, unknown> }

Output

{ verified: boolean }

userPasskeys.beginDiscoverableAuthentication

  • Kind: mutation — POST /trpc/userPasskeys.beginDiscoverableAuthentication
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=userPasskeys.beginDiscoverableAuthentication on your hub

Input

{}

Output

{ optionsJSON: Record<string, unknown> }

userPasskeys.finishDiscoverableAuthentication

  • Kind: mutation — POST /trpc/userPasskeys.finishDiscoverableAuthentication
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=userPasskeys.finishDiscoverableAuthentication on your hub

Input

{ response: Record<string, unknown> }

Output

{ verified: boolean; userId: string | null }

userPasskeys.listPasskeys

  • Kind: query — GET /trpc/userPasskeys.listPasskeys
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=userPasskeys.listPasskeys on your hub

Input

{ userId: string }

Output

PasskeySummarySchema[]

Shapes: PasskeySummarySchema

userPasskeys.removePasskey

  • Kind: mutation — POST /trpc/userPasskeys.removePasskey
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=userPasskeys.removePasskey on your hub

Input

{ userId: string; credentialId: string }

Output

{ success: true }

userPasskeys.getSecondFactorPreference

  • Kind: query — GET /trpc/userPasskeys.getSecondFactorPreference
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=userPasskeys.getSecondFactorPreference on your hub

Input

{ userId: string }

Output

{ enabled: boolean }

userPasskeys.setSecondFactorPreference

  • Kind: mutation — POST /trpc/userPasskeys.setSecondFactorPreference
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=userPasskeys.setSecondFactorPreference on your hub

Input

{ userId: string; enabled: boolean }

Output

{ success: true }