beginPasskeyLoginWithHttpInfo method
Future<Response>
beginPasskeyLoginWithHttpInfo({
- PasskeyLoginBeginRequest? passkeyLoginBeginRequest,
Begin passkey login
Initiates WebAuthn authentication flow. Returns PublicKeyCredentialRequestOptions for the browser's WebAuthn API. Optionally accepts an email for targeted credential lookup.
Note: This method returns the HTTP Response.
Parameters:
- PasskeyLoginBeginRequest passkeyLoginBeginRequest:
Implementation
Future<Response> beginPasskeyLoginWithHttpInfo({ PasskeyLoginBeginRequest? passkeyLoginBeginRequest, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/auth/passkeys/login/begin';
// ignore: prefer_final_locals
Object? postBody = passkeyLoginBeginRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}