Method: Oauth2Token#expires_in
- Defined in:
-
lib/generators/mongoid/oauth_provider_templates/oauth2_token.rb,
lib/generators/active_record/oauth_provider_templates/oauth2_token.rb
17 18 19 |
# File 'lib/generators/mongoid/oauth_provider_templates/oauth2_token.rb', line 17 def expires_in expires_at.to_i - Time.now.to_i end |