tiny_auth 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tiny_auth/version.rb +1 -1
- data/lib/tiny_auth.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce2aaf5f006569620b52ab1de117c4aa5d5d3d31
|
4
|
+
data.tar.gz: d458f358c87410b997a213875dfce64f128dbe08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea724d058e16ea66db6fe5bb6f9b570bba1ceade53df751357b192ed493b5b33be168a9f8f72731fa57fbca413c81708d899b970f24658bc418e2b7f77f5cb39
|
7
|
+
data.tar.gz: f8330414be12225fbf6c1c5e817c1db7decf604dc15d8e9f12285b0af35c5bd1a026738dba46e4d2b2e70e3e65750d1da5adf879406958d2b5574eef91555067
|
data/Gemfile.lock
CHANGED
data/lib/tiny_auth/version.rb
CHANGED
data/lib/tiny_auth.rb
CHANGED
@@ -22,7 +22,7 @@ class TinyAuth
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def generate_token(resource, purpose: :access, expires_in: 24.hours)
|
25
|
-
resource.to_sgid(expires_in: expires_in, for: purpose)
|
25
|
+
resource.to_sgid(expires_in: expires_in, for: purpose).to_s
|
26
26
|
end
|
27
27
|
|
28
28
|
def find_by_token(token, purpose: :access)
|