OBJECT

WebauthnMutationSection

Passkey (WebAuthn) management for the logged user

link GraphQL Schema definition

  • type WebauthnMutationSection {
  • # Starts passkey registration; returns PublicKeyCredentialCreationOptions as JSON
  • # to pass to navigator.credentials.create()
  • registrationOptions: String!
  • # Confirms the account password to unlock passkey management for the current
  • # session, so adding/removing passkeys does not require the password each time
  • #
  • # Arguments
  • # password: Current account password; confirms passkey management
  • # access for a short time (step-up)
  • confirmManagementAccess(password: String!): Boolean!
  • # Finishes passkey registration with the JSON returned by
  • # navigator.credentials.create(); requires prior confirmManagementAccess
  • #
  • # Arguments
  • # response:
  • # name:
  • registrationVerify(
  • response: WebauthnAttestationResponse!,
  • name: String!
  • ): WebauthnCredential!
  • # Removes one of the logged user passkeys; requires prior confirmManagementAccess
  • #
  • # Arguments
  • # id:
  • removeCredential(id: WebauthnCredentialId!): Boolean!
  • }