mirror of
https://github.com/penpot/penpot.git
synced 2026-09-07 04:29:31 +00:00
🐛 Fix inconsistent naming on rpc call on github and google auth provider.
This commit is contained in:
parent
ff7330048b
commit
df4adfe717
@ -120,7 +120,7 @@
|
|||||||
(ex/raise :type :authentication
|
(ex/raise :type :authentication
|
||||||
:code :unable-to-authenticate-with-github))
|
:code :unable-to-authenticate-with-github))
|
||||||
|
|
||||||
(let [method-fn (get-in rpc [:method :mutations :login-or-register])
|
(let [method-fn (get-in rpc [:method :mutation :login-or-register])
|
||||||
profile (method-fn {:email (:email info)
|
profile (method-fn {:email (:email info)
|
||||||
:fullname (:fullname info)})
|
:fullname (:fullname info)})
|
||||||
uagent (get-in request [:headers "user-agent"])
|
uagent (get-in request [:headers "user-agent"])
|
||||||
|
|||||||
@ -110,7 +110,7 @@
|
|||||||
(ex/raise :type :authentication
|
(ex/raise :type :authentication
|
||||||
:code :unable-to-authenticate-with-google))
|
:code :unable-to-authenticate-with-google))
|
||||||
|
|
||||||
(let [method-fn (get-in rpc [:method :mutations :login-or-register])
|
(let [method-fn (get-in rpc [:method :mutation :login-or-register])
|
||||||
profile (method-fn {:email (:email info)
|
profile (method-fn {:email (:email info)
|
||||||
:fullname (:fullname info)})
|
:fullname (:fullname info)})
|
||||||
uagent (get-in request [:headers "user-agent"])
|
uagent (get-in request [:headers "user-agent"])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user