lib/doorkeeper/orm/mongoid4/access_grant.rb in doorkeeper-mongodb-5.0.0 vs lib/doorkeeper/orm/mongoid4/access_grant.rb in doorkeeper-mongodb-5.2.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Doorkeeper
class AccessGrant
include Mongoid::Document
include Mongoid::Timestamps
@@ -9,9 +11,10 @@
include DoorkeeperMongodb::Mixins::Mongoid::AccessGrantMixin
store_in collection: :oauth_access_grants
field :resource_owner_id, type: BSON::ObjectId
+ field :resource_owner_type, type: String
field :token, type: String
field :expires_in, type: Integer
field :redirect_uri, type: String
field :revoked_at, type: DateTime
field :code_challenge, type: String