graphql-auth 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/graphql-auth/jwt_manager.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5ffa56e33c28af702f87bb776c192921f83086b070fb05d5abf98eefb73c9787
|
4
|
+
data.tar.gz: 8ad60b751d4c1c3438d780a145692f557b3d6624698fe8d20f0ab8917d2e57c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bd40850c4273a5b071e9e9b7b46afcaa7ec5bf9a9bc8d1774f76767832e33a5fdb6d90f4438c3c543be50a344fefbde4e0c5d4b49951912e3708dcdb6372275
|
7
|
+
data.tar.gz: 2c1be37cece9f12dfa1fd57812ba7c66a0d893f1fe1d570e404a2eea5c510f128e09a7df7a9be8ef949de0a964d8fb70a379b4a134915e3196a74ebd47ef9744
|
@@ -9,7 +9,7 @@ module GraphQL
|
|
9
9
|
|
10
10
|
class << self
|
11
11
|
def issue(payload, custom_expiration = nil)
|
12
|
-
if custom_expiration.present? && custom_expiration.
|
12
|
+
if custom_expiration.present? && custom_expiration.is_a?(ActiveSupport::Duration)
|
13
13
|
payload[:exp] = custom_expiration
|
14
14
|
else
|
15
15
|
payload.merge!(expiration)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Ferland
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.6
|
131
|
+
rubygems_version: 2.7.6
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: GraphQL + JWT + Devise
|