Closed jacobwarren closed 1 year ago
I'm also getting this.
There seems to be several things going on here. First can you try to update the RedisCache
to the latest revision: https://hexdocs.pm/pow/1.0.25/redis_cache_store_backend.html#content
That should take care of the nil
raise error. After this, could you update the AuthController
to raise error on missing keys: https://github.com/pow-auth/pow_assent/commit/5b18531d8590e2b28ca8d3e8c10f22a8ba0eb58f
Finally can you ensure that the APIAuthPlug
is correct: https://hexdocs.pm/pow/1.0.25/api.html#content
Let me know if this resolve it, and thanks for your patience!
Environment:
1.12.2
24.0.3
1.0.23
0.4.11
0.1.26
I'm currently running PowAssent to authenticate users on a React front-end to my Elixir backend. I can successfully create the user, but the access and refresh tokens both return nil, and upon returning to login, already registered users trip the following error:
Upon successful registration, while the user is created, the token is not returned, so I'm not sure if can trust the user. Here is the shape of the returned object:
On the backend, here's what I'm running with.
Config:
Controller for handling auth requests and callbacks:
On the frontend here is the code used to trigger the Facebook dialog:
Regular authentication works perfectly using email and password. I then store a cookie through GraphQL for those users.
I'm not sure if my think on OAuth is off, but I'm expecting to get an access and a refresh token back possessing the user's Oauth creds so I can know that I can trust them as well as find their user much like I do via my auth plug with:
Am I thinking about this correctly? Thank you!