xesjkeee
12/17/2021, 11:23 AM/signinup
and /authorisationurl
How to use them in right variant?
For example, I want to authenticate via Google oAuth, I have "Continue with Google" button on the frontend app (using plain js), after mounted the page I make GET request to the server via endpoint /api/auth/authorisationurl?thirdPartyId=google
and get payload with {status: "OK", url: "https://accounts.google.com/o/oauth2/v2/auth?scope=..."}
That URL I inject to the button's click handler, and when I click on the button, I go to googles' OAuth page, but get the error: Error 400: invalid_request Missing required parameter: redirect_uri
- where I missed that parameter, in the query that the server responds to me or in google console or configuration for the server?
Next one, how to use /signinup
method? I see the description
Should contain one of code or authCodeResponse, clientId is optional
, okay – I know redirectURI
and thirdPartyId
parameters, but where do I have to get the code
parameter?