doorkeeper-rethinkdb 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/doorkeeper-rethinkdb/version.rb +1 -1
- data/lib/support/orm/rethinkdb/access_token.rb +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec14a5bedfd83c255894b243da28a0f7b20abd7942d68e0a05e09eaa713da64e
|
4
|
+
data.tar.gz: 3b53a2a927edf87506875e0495beda93f13f7aee66738ef313245fee74d5baec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d259a1ba170598687201e577fcff8b511b185acc28e3dfb5d898e7381295dd88cb62c523e6196215174b07c06618ceaf4b8765440e04788b098aecd42593e62a
|
7
|
+
data.tar.gz: 597464e5acff23f072ff5ba1975f6812f6795e5153583c99cd991e381b139129fe64213e3c36f960751a1ffc6fce2b1b163d1cd5a5719f5258a902c971e72da9
|
@@ -27,7 +27,7 @@ module Doorkeeper
|
|
27
27
|
field :previous_refresh_token, type: String, default: ->{ '' }
|
28
28
|
field :expires_in, type: Integer
|
29
29
|
field :ttl, type: Integer
|
30
|
-
field :
|
30
|
+
field :revoked_time, type: Integer
|
31
31
|
|
32
32
|
index :ttl
|
33
33
|
|
@@ -40,6 +40,14 @@ module Doorkeeper
|
|
40
40
|
!!self.application_id
|
41
41
|
end
|
42
42
|
|
43
|
+
def revoked_at
|
44
|
+
Time.at(self.revoked_time)
|
45
|
+
end
|
46
|
+
|
47
|
+
def revoked_at=(time)
|
48
|
+
self.revoked_time = time.to_i
|
49
|
+
end
|
50
|
+
|
43
51
|
class << self
|
44
52
|
def refresh_token_revoked_on_use?
|
45
53
|
true
|