account.registerPasskey
Complete passkey registration for the current account, see here » for more info on the full flow.
func (c *Client) AccountRegisterPasskey(ctx context.Context, credential InputPasskeyCredentialClass) (*Passkey, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountRegisterPasskey(ctx, credential)
if err != nil {
return err
}
_ = res // *Passkey
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Credential | InputPasskeyCredentialClass | yes | Registration result. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CREDENTIAL_INVALID |
References
- Official documentation
- Generated Go reference
- TL definition:
account.registerPasskey#55b41fd6