retrieveRefreshTokenById method

Future<ClientResponse<RefreshTokenResponse, Errors>> retrieveRefreshTokenById(
  1. String tokenId
)

Retrieves a single refresh token by unique Id. This is not the same thing as the string value of the refresh token. If you have that, you already have what you need.

@param {String} tokenId The Id of the token. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<RefreshTokenResponse, Errors>> retrieveRefreshTokenById(
    String tokenId) {
  return _start<RefreshTokenResponse, Errors>()
      .withUri('/api/jwt/refresh')
      .withUriSegment(tokenId)
      .withMethod('GET')
      .withResponseHandler(defaultResponseHandlerBuilder(
          (d) => RefreshTokenResponse.fromJson(d)))
      .go();
}