-
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API auth token null #587
Comments
@danschultzer I am also seeing this same issue when I try to test the api endpoionts. when I try to run the first curl request curl -X POST -d "user[email][email protected]&user[password]=secret1234&user[password_confirmation]=secret1234" http://localhost:4000/api/v1/registration
the result I get is: {"data":{"access_token":null,"renewal_token":null}} any advice on to proceed in debugging this? I have not made any other modifications other than using the API auth guide in the docs. |
Sorry for the late reply! There was a significant change in the API guide a while a ago with #454 where the naming was changed for the I would run |
@danschultzer that's certainly possible that what you're describing could be the issue. I was on deadline of sorts(take-home project for an interview, so I switched to a different auth solution(phx.gen.auth). I can spin up an example app using Pow this weekend though and see if what you suggested would fix the issue. Thanks for responding. |
Yeah, this sounds like a frustrating issue. I would be happy to see if you can replicate this issue. I've opened #597 to ensure that an error is raised if the keys are not set. |
Hi, @danschultzer, it seems this issue is still happening. I've debugged a bit and the Api plug is never called as you mentioned. also, in the docs is stated that we have to remove the
I'm using the latest pow, |
Hi, I've followed the example on the Pow guides for API auth, it's working but the responses on registrations an sessions urls are giving an empty access token, like
{"data":{"access_token":null,"renewal_token":null}}
I guess it has something to do with the CredentialsCache or the PersistentSessionCache but I don't know really how to debug this.using {:pow, "
> 1.0.21"} and phoenix {:phoenix, "> 1.5.7"}The text was updated successfully, but these errors were encountered: