Skip to main content

account.initPasskeyRegistration

Initialize passkey registration for the current account, see here » for more info on the full flow.

func (c *Client) AccountInitPasskeyRegistration(ctx context.Context) (*AccountPasskeyRegistrationOptions, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.AccountInitPasskeyRegistration(ctx)
if err != nil {
return err
}
_ = res // *AccountPasskeyRegistrationOptions
return nil
})

Parameters

This method takes no parameters.

Returns

*AccountPasskeyRegistrationOptions

Possible errors

CodeTypeDescription
403ACCESS_DENIED

References