// RevokeToken takes an access or refresh token and revokes it.
RevokeToken takes an access or refresh token and revokes it.
// RevokeToken takes an access or refresh token and revokes it .
func (c Config) RevokeToken(ctx context.Context, token, tokenTypeHint string) (*atlas.Response, error) {
	req, err := c.NewRequest(ctx, http.MethodPost, deviceBasePath+"/revoke",
		url.Values{
			"client_id":       {c.ClientID},
			"token":           {token},
			"token_type_hint": {tokenTypeHint},
		},
	)
	if err != nil {
		return nil, err
	}
	return c.Do(ctx, req, nil)
}
func ( c Config ) RevokeToken ( ctx context . Context , token , tokenTypeHint string ) ( * atlas . Response , error ) { req , err := c . NewRequest ( ctx , http . MethodPost , deviceBasePath + " " , url . Values { " " : { c . ClientID } , " " : { token } , " " : { tokenTypeHint } , } , ) if err != nil { return nil , err } return c . Do ( ctx , req , nil ) }
RevokeToken takes an access or refresh token and revokes it.
RevokeToken takes an access or refresh token and revokes it .