Module: SimpleTokenAuth::TokenAuthenticatable

Extended by:
ActiveSupport::Concern
Defined in:
lib/simple_token_auth/token_authenticatable.rb

Instance Method Summary collapse

Instance Method Details

#auth_tokenObject



17
18
19
# File 'lib/simple_token_auth/token_authenticatable.rb', line 17

def auth_token
  api_key.access_token
end

#renew_api_keyObject



21
22
23
# File 'lib/simple_token_auth/token_authenticatable.rb', line 21

def renew_api_key
  api_key.renew!
end