Skip to main content

auth.dropTempAuthKeys

Delete all temporary authorization keys except for the ones specified

func (c *Client) AuthDropTempAuthKeys(ctx context.Context, exceptauthkeys []int64) (bool, error)

Calling this method​

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

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

Parameters​

NameTypeRequiredDescription
ExceptAuthKeys[]int64yesThe auth keys that shouldn't be dropped.

Returns​

bool

References​