# File lib/generators/mongoid/oauth_provider_templates/oauth2_token.rb, line 3
  def as_json(options={})
    d = {:access_token=>token, :token_type => 'bearer'}
    d[:expires_in] = expires_in if expires_at
    d
  end