getWebauthnRegistrationOptions abstract method

  1. @POST.new('/users/@me/mfa/webauthn/credentials/registration-options')
Future<WebAuthnChallengeResponse> getWebauthnRegistrationOptions({
  1. @Body.new() required SudoVerificationSchema body,
})

Get WebAuthn registration options.

Generate challenge and options to register a new WebAuthn credential. Requires sudo mode verification.

body - Name not received - field will be skipped.

Implementation

@POST('/users/@me/mfa/webauthn/credentials/registration-options')
Future<WebAuthnChallengeResponse> getWebauthnRegistrationOptions({
  @Body() required SudoVerificationSchema body,
});