Management API
Go
package example import ( client "github.com/auth0/go-auth0/management/client" option "github.com/auth0/go-auth0/management/option" context "context" management "github.com/auth0/go-auth0/management" ) func do() () { client := client.NewClient( option.WithToken( "<token>", ), ) client.Users.RevokeAccess( context.TODO(), "id", &management.RevokeUserAccessRequestContent{}, ) }
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.
Cette page vous a-t-elle été utile ?