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

Instance Method Details

#delete_refresh_token(id) ⇒ Object

Delete a refresh token by its ID.

Parameters:

  • id (string)

    The id of the refresh token to delete

Raises:

See Also:



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.

Parameters:

  • id (string)

    The id of the refresh token to retrieve

Raises:

See Also:



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