@@ -138,7 +138,7 @@ Creates a new request to exchange the `code` previously obtained by calling the
138138
139139Example:
140140``` java
141- AuthRequest request = exchangeCode(" asdfgh" , " https://me.auth0.com/callback" )
141+ AuthRequest request = auth . exchangeCode(" asdfgh" , " https://me.auth0.com/callback" )
142142 .setAudience(" https://api.me.auth0.com/users" )
143143 .setScope(" openid contacts" );
144144try {
@@ -158,7 +158,7 @@ Creates a new request to log in the user with `username` and `password`. The con
158158
159159Example:
160160``` java
161- AuthRequest request = login(" me@domain.com" , " password123" )
161+ AuthRequest request = auth . login(" me@domain.com" , " password123" )
162162 .setAudience(" https://api.me.auth0.com/users" )
163163 .setScope(" openid contacts" );
164164try {
@@ -178,7 +178,7 @@ Creates a new request to log in the user with `username` and `password` using th
178178
179179Example:
180180``` java
181- AuthRequest request = login(" me@domain.com" , " password123" , " Username-Password-Authentication" )
181+ AuthRequest request = auth . login(" me@domain.com" , " password123" , " Username-Password-Authentication" )
182182 .setAudience(" https://api.me.auth0.com/users" )
183183 .setScope(" openid contacts" );
184184try {
@@ -198,7 +198,7 @@ Creates a new request to get a Token for the given Audience.
198198
199199Example:
200200``` java
201- AuthRequest request = requestToken(" https://api.me.auth0.com/users" )
201+ AuthRequest request = auth . requestToken(" https://api.me.auth0.com/users" )
202202 .setScope(" openid contacts" );
203203try {
204204 TokenHolder holder = request. execute();
@@ -209,6 +209,24 @@ try {
209209}
210210```
211211
212+ ### Revoke Refresh Token
213+
214+ Creates a new request to revoke an existing Refresh Token.
215+
216+ ` Request<Void> revokeToken(String refreshToken) `
217+
218+ Example:
219+ ``` java
220+ Request<Void > request = auth. revokeToken(" nisd1h9dks1doWJOsaf" );
221+ try {
222+ request. execute();
223+ } catch (APIException exception) {
224+ // api error
225+ } catch (Auth0Exception exception) {
226+ // request error
227+ }
228+ ```
229+
212230
213231## Management API
214232
0 commit comments