ibrain-auth 0.3.5 → 0.3.7
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/social_sign_in_mutation.rb +3 -3
- data/app/graphql/ibrain/auth/types/input/social_sign_in_input.rb +13 -0
- data/app/models/ibrain/auth/user.rb +1 -1
- data/config/routes.rb +1 -1
- data/lib/generators/ibrain/auth/install/templates/config/initializers/ibrain_auth.rb.tt +3 -0
- data/lib/ibrain/auth/version.rb +1 -1
- data/lib/ibrain/auth_configuration.rb +2 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b5a9480e0e869679bf664237ce962ef17ff56ef7087251211bcd0d4ae28aee9
|
4
|
+
data.tar.gz: 43503cd8684a83261e76c7cbfd998edf29fb28f94afd13a7025c97e027012b9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 478b379d0d48a0e166301146009c1e167205f30cc40007df80f88d26357887866fd25be95c5b534e287acc7e899cce8380fd6a2130ec0671230ef4e9526f113d
|
7
|
+
data.tar.gz: d90a560cdab976bae3615509d29b77d958aeaec107b748b20157db953407cd241417acf1915a30fd001055b60e28602161fb62f75c80db2dd51c7f85357c7f75
|
@@ -7,7 +7,7 @@ module Ibrain::Auth::Mutations
|
|
7
7
|
field :result, Boolean, null: true
|
8
8
|
field :is_verified, Boolean, null: true
|
9
9
|
|
10
|
-
argument :
|
10
|
+
argument :attributes, Ibrain::Auth::Config.social_sign_in_input, required: true
|
11
11
|
argument :device_token, String, description: 'Device token for notificaiton', required: false
|
12
12
|
|
13
13
|
def resolve(args)
|
@@ -40,8 +40,8 @@ module Ibrain::Auth::Mutations
|
|
40
40
|
|
41
41
|
private
|
42
42
|
|
43
|
-
def normalize_parameters
|
44
|
-
|
43
|
+
def normalize_parameters
|
44
|
+
attribute_params
|
45
45
|
rescue StandardError
|
46
46
|
ActionController::Parameters.new({})
|
47
47
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Ibrain
|
4
|
+
module Auth
|
5
|
+
module Types
|
6
|
+
module Input
|
7
|
+
class SocialSignInInput < Ibrain::Types::BaseInputObject
|
8
|
+
argument :id_token, String, description: 'Id Token from firebase', required: true
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/config/routes.rb
CHANGED
@@ -8,5 +8,5 @@ Ibrain::Auth::Engine.routes.draw do
|
|
8
8
|
path: "api/#{Ibrain::Config.api_version}/users",
|
9
9
|
defaults: { format: :json }
|
10
10
|
|
11
|
-
|
11
|
+
get "api/#{Ibrain::Config.api_version}/users/callback" => 'sessions#callback'
|
12
12
|
end
|
data/lib/ibrain/auth/version.rb
CHANGED
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.3.
|
4
|
+
version: 0.3.7
|
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-
|
11
|
+
date: 2022-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|
@@ -216,6 +216,7 @@ files:
|
|
216
216
|
- app/graphql/ibrain/auth/types/input/generate_firebase_token_input.rb
|
217
217
|
- app/graphql/ibrain/auth/types/input/sign_in_input.rb
|
218
218
|
- app/graphql/ibrain/auth/types/input/sign_up_input.rb
|
219
|
+
- app/graphql/ibrain/auth/types/input/social_sign_in_input.rb
|
219
220
|
- app/models/ibrain/auth/user.rb
|
220
221
|
- app/repositories/auth_repository.rb
|
221
222
|
- app/repositories/firebase_repository.rb
|