Closed bugloper closed 2 weeks ago
Hey @bugloper! Thanks for the report but Devise does not support GraphQL out of the box, you might need to use some 3rd party gems to make it work for you, like https://github.com/graphql-devise/graphql_devise
Hey @bugloper! Thanks for the report but Devise does not support GraphQL out of the box, you might need to use some 3rd party gems to make it work for you, like https://github.com/graphql-devise/graphql_devise
Thanks.
Pre-check
Environment
Current behavior
File path:
lib/devise/strategies/authenticatable.rb
Line number: 93In case of REST api,
returns authentication infos such as email and password from
params = { user: { email: "nima@gmail.com", password: "Password"} }
But in case of GraphQL(
graphql
gem), params is not a normal hash but rather:Easiest work around by @lit-poks is to override in your application.
Since this affects the authenticable module, you might face issues indirectly in cookies, remember_user_token, etc.
Credit: This issue was initially faced by my friend @lit-poks and gave me the above workaround. Thanks man!
Expected behavior