lib/doorkeeper-mongodb/mixins/mongoid/access_token_mixin.rb
# JSON representation of the Access Token instance.
#
# @return [Hash] hash with token data
JSON representation of the Access Token instance.
JSON representation of the Access Token instance .
def as_json(_options = {})
          {
            resource_owner_id: resource_owner_id,
            scope: scopes,
            expires_in: expires_in_seconds,
            application: { uid: application.try(:uid) },
            created_at: created_at.to_i,
          }
        end
def as_json ( _options = { } ) { resource_owner_id : resource_owner_id , scope : scopes , expires_in : expires_in_seconds , application : { uid : application . try ( :uid ) } , created_at : created_at . to_i , } end
JSON representation of the Access Token instance.
JSON representation of the Access Token instance .
hash with token data
hash with token data
Hash
_options
<not_specific>