Module: Auth0::Api::V2::RefreshTokens
- Included in:
- Auth0::Api::V2
- Defined in:
- lib/auth0/api/v2/refresh_tokens.rb
Overview
Methods to use the Refresh Token endpoints
Instance Method Summary collapse
-
#delete_refresh_token(id) ⇒ Object
Delete a refresh token by its ID.
-
#refresh_token(id) ⇒ Object
Retrieve refresh token information.
Instance Method Details
#delete_refresh_token(id) ⇒ Object
Delete a refresh token by its ID.
20 21 22 23 24 |
# File 'lib/auth0/api/v2/refresh_tokens.rb', line 20 def delete_refresh_token(id) raise Auth0::InvalidParameter, 'Must supply a valid id' if id.to_s.empty? delete "#{resource_path}/#{id}" end |
#refresh_token(id) ⇒ Object
Retrieve refresh token information.
11 12 13 14 15 |
# File 'lib/auth0/api/v2/refresh_tokens.rb', line 11 def refresh_token(id) raise Auth0::InvalidParameter, 'Must supply a valid id' if id.to_s.empty? get "#{resource_path}/#{id}" end |