Using the web SDK and AW Cloud, I call createOAuth2Session that performs the redirect to the provider's login page and then the user is redirected to the success url. The url doesn't contain query parameters and I don't understand how to know which user has been created or logged in. What I'm missing?
Summary
After creating a session using OAuth2, you need to specify two URLs - one for success and one for failure. After the user is redirected to the success URL, you should show the appropriate data to the user. Additionally, you need to call `account.get()` to start the session. If you're not seeing data in local storage, session storage, or cookies, you may be missing this step. More information can be found in the provided Discord link.
Binyamin
Jun 2, 2023, 16:50
When calling the createOAuth2Session you'll provide two URLs
On success
On failure.
After each you should show the user the appropriate data.