Skip to main content

auth.resetAuthorizations

Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method account.registerDevice

func (c *Client) AuthResetAuthorizations(ctx context.Context) (bool, error)

Calling this method

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

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

Parameters

This method takes no parameters.

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.

References