Skip to main content

account.deletePasskey

Delete a passkey associated to the current account, see here » for more info.

func (c *Client) AccountDeletePasskey(ctx context.Context, id string) (bool, error)

Calling this method

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

res, err := api.AccountDeletePasskey(ctx, id)
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
IDstringyesIdentifier of the passkey to delete, taken from passkey.id, usually obtained using account.getPasskeys.

Returns

bool

References