Management API
Go
package example import ( context "context" management "github.com/auth0/go-auth0/management/management" client "github.com/auth0/go-auth0/management/management/client" option "github.com/auth0/go-auth0/management/management/option" ) func do() { client := client.NewClient( option.WithToken( "<token>", ), ) request := &management.RevokeUserAccessRequestContent{} client.Users.RevokeAccess( context.TODO(), "id", request, ) }
Revokes selected resources related to a user (sessions, refresh tokens, …).
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the user.
ID of the session to revoke.
50
Whether to preserve the refresh tokens associated with the session.
Session deletion request accepted.
Was this page helpful?