# File lib/generators/mongoid/oauth_provider_templates/oauth2_token.rb, line 17 def expires_in expires_at.to_i - Time.now.to_i end