Closed sveredyuk closed 4 years ago
It's described in the docs here:
https://client.example.com/auth/:provider/callback
is the client side URI where the user will be redirected back to after authorization. The client should then send a POST request from the client to the callback URI in the API with the both the params received from the provider, and thesession_params
stored in the client.
You're redirecting to the callback endpoint instead of the client side callback URI. If this is in a native app then you would normally open up the the app uri with the query params, and then post to the callback endpoint.
@danhunsaker I am stupid. Thanks a lot.
Hi, I faced a very strange problem. Seems like google redirect me back with GET instead of POST. Ofc it works when I change post to get in the router. But why?
My router.ex
My controller: