Using Auth Flow API for a google login #5002
-
I am using the authgear authentication flow API to login using google. This is all good up to the point of using the code returned by google after successful authentication. The docs (https://docs.authgear.com/reference/apis/authentication-flow-api) just state: Next, send the authorization code in your next HTTP request to the Authentication Flow API in your input like this: I assume that this means another POST to but I just get a 400 Bad Request response:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The documentation is a bit lacking... |
Beta Was this translation helpful? Give feedback.
The documentation is a bit lacking...
You have to include the whole of the query string from the redirect url in the input, e.g.
{ "state_token": "<state token from last call>", "input: { "code": "<AUTHORIZATION CODE FROM OAUTH PROVIDER>", "query":"<QUERY STRING FROM THE REDIRECT URL>" } }