Skip to main content

account.resetAuthorization

Log out an active authorized session by its hash

func (c *Client) AccountResetAuthorization(ctx context.Context, hash int64) (bool, error)

Calling this method

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

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

Parameters

NameTypeRequiredDescription
Hashint64yesSession hash

Returns

bool

Possible errors

CodeTypeDescription
406FRESH_RESET_AUTHORISATION_FORBIDDENYou can't logout other sessions if less than 24 hours have passed since you logged on the current session.
400HASH_INVALIDThe provided hash is invalid.

References