revokeRefreshToken method
Revokes refresh tokens.
Usage examples:
-
Delete a single refresh token, pass in only the token. revokeRefreshToken(token)
-
Delete all refresh tokens for a user, pass in only the userId. revokeRefreshToken(null, userId)
-
Delete all refresh tokens for a user for a specific application, pass in both the userId and the applicationId. revokeRefreshToken(null, userId, applicationId)
-
Delete all refresh tokens for an application revokeRefreshToken(null, null, applicationId)
Note: null
may be handled differently depending upon the programming language.
See also: (method names may vary by language... but you'll figure it out)
- revokeRefreshTokenById
- revokeRefreshTokenByToken
- revokeRefreshTokensByUserId
- revokeRefreshTokensByApplicationId
- revokeRefreshTokensByUserIdForApplication
@param {String} token (Optional) The refresh token to delete. @param {String} userId (Optional) The user id whose tokens to delete. @param {String} applicationId (Optional) The application id of the tokens to delete. @returns {Promise<ClientResponse
Implementation
Future<ClientResponse<void, Errors>> revokeRefreshToken(
String token, String userId, String applicationId) {
return _start<void, Errors>()
.withUri('/api/jwt/refresh')
.withParameter('token', token)
.withParameter('userId', userId)
.withParameter('applicationId', applicationId)
.withMethod('DELETE')
.go();
}