Headlessly Revoke an Access Token
To log out of your headless app, you can revoke the access token. This example walks you through headlessly revoking a token with Postman.
| Required Editions |
|---|
| Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions |
-
From the Headless Identity API Demo folder in Postman, select Revoke Token.
Note the location of the POST request. It’s the
/services/oauth2/revokeendpoint on your Experience Cloud site, which is the same endpoint that you used for the initial reset request. -
To see the request body, click Body. The revocation request includes only a
tokenparameter. -
For the
tokenparameter, replace<Token>with an access token that you obtained during headless registration or headless login. -
To send the request to the revocation endpoint, click Send.
If the request is successful, you’re logged out.