ibrain-auth 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/graphql/ibrain/auth/mutations/generate_firebase_token_mutation.rb +1 -1
- data/app/graphql/ibrain/auth/mutations/sign_up_mutation.rb +6 -15
- data/app/graphql/ibrain/auth/types/input/generate_firebase_token_input.rb +1 -1
- data/app/repositories/firebase_repository.rb +1 -1
- data/lib/ibrain/auth/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f763692f6d5b704c1b30c50a104d61283df33633e4009f6cb39ec4d25113f893
|
|
4
|
+
data.tar.gz: 475275e8117238e9ff17b84917a8611a55d58e2da974d49d9dee0f24316a2d2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df00d71b19ba24ad523dbb7af3c29b63ac634376892b2ae3f098fbc1cd5b3924d6efcd8e992f91c5c83c7ce555e69ad3e54fba698360f5d0aaf38d522a744049
|
|
7
|
+
data.tar.gz: 19f4f1662d54348a57d9525cd3d03a757e82f467b2556e59cb7752df81e88a48fb638872f4b0a1dbff6579546b6e13f300e0e9619fb37854acd824a4787a417c
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Ibrain::Auth::Mutations
|
|
4
4
|
class SignUpMutation < BaseMutation
|
|
5
|
-
field :
|
|
6
|
-
field :token, String, null: true
|
|
5
|
+
field :is_verified, Boolean, null: true
|
|
7
6
|
field :result, Boolean, null: true
|
|
8
7
|
|
|
9
8
|
argument :attributes, Ibrain::Auth::Config.sign_up_input, required: true
|
|
@@ -29,19 +28,13 @@ module Ibrain::Auth::Mutations
|
|
|
29
28
|
end
|
|
30
29
|
|
|
31
30
|
context[:current_user] = current_user
|
|
32
|
-
|
|
33
|
-
graphql_returning(
|
|
34
|
-
user_signed_in?,
|
|
35
|
-
true,
|
|
36
|
-
user_signed_in? ? current_user : nil,
|
|
37
|
-
current_user.try(:jwt_token),
|
|
38
|
-
)
|
|
31
|
+
graphql_returning
|
|
39
32
|
end
|
|
40
33
|
|
|
41
34
|
private
|
|
42
35
|
|
|
43
36
|
def load_resource
|
|
44
|
-
repo.
|
|
37
|
+
repo.create
|
|
45
38
|
end
|
|
46
39
|
|
|
47
40
|
def repo
|
|
@@ -58,12 +51,10 @@ module Ibrain::Auth::Mutations
|
|
|
58
51
|
{ scope: resource_name }
|
|
59
52
|
end
|
|
60
53
|
|
|
61
|
-
def graphql_returning
|
|
54
|
+
def graphql_returning
|
|
62
55
|
OpenStruct.new(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
result: result,
|
|
66
|
-
is_verified: is_verified
|
|
56
|
+
result: current_user.present?,
|
|
57
|
+
is_verified: false
|
|
67
58
|
)
|
|
68
59
|
end
|
|
69
60
|
end
|
data/lib/ibrain/auth/version.rb
CHANGED
|
@@ -4,14 +4,14 @@ module Ibrain
|
|
|
4
4
|
# frozen_string_literal: true
|
|
5
5
|
|
|
6
6
|
module Auth
|
|
7
|
-
VERSION = '0.2.
|
|
7
|
+
VERSION = '0.2.9'
|
|
8
8
|
|
|
9
9
|
def self.ibrain_auth_version
|
|
10
10
|
VERSION
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def self.previous_ibrain_auth_minor_version
|
|
14
|
-
'0.2.
|
|
14
|
+
'0.2.8'
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def self.ibrain_auth_gem_version
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ibrain-auth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tai Nguyen Van
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-10-
|
|
11
|
+
date: 2022-10-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: devise-encryptable
|
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
248
248
|
- !ruby/object:Gem::Version
|
|
249
249
|
version: '0'
|
|
250
250
|
requirements: []
|
|
251
|
-
rubygems_version: 3.
|
|
251
|
+
rubygems_version: 3.1.6
|
|
252
252
|
signing_key:
|
|
253
253
|
specification_version: 4
|
|
254
254
|
summary: Its Auth is an sso authen gem for Ruby on Rails.
|