Class: Devise::Oauth2Providable::AccessToken

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/devise/oauth2_providable/access_token.rb

Instance Method Summary collapse

Instance Method Details

#token_responseObject



9
10
11
12
13
14
15
16
17
# File 'app/models/devise/oauth2_providable/access_token.rb', line 9

def token_response
  response = {
    :access_token => token,
    :token_type => 'bearer',
    :expires_in => expires_in
  }
  response[:refresh_token] = refresh_token.token if refresh_token
  response
end