Ryan BaigOriginal post
Rank 3: Container
so, when you create an OAuth2 Session, it asks for callback functions, one for success and failure. So after the Oauth2 (for ex. Google) is granted, does it send a header, a cookie, or something else to the callback?
Summary
There are two flows for OAuth in the context of creating OAuth2 sessions and tokens.
**Flow 1 (createOAuth2Session):**
- Simplifies setup but may fail on browsers with 3rd party cookie issues.
- Suggested solution is to use OAuth tokens or define a custom domain in project settings.
**Flow 2 (createOAuth2Token):**
- Similar to JWT, does not rely on 3rd party cookies but is more complex to set up.
When creating an OAuth2 session and specifying callback functions for success and failure, after the OAuth2 authorization is granted, it sends a token and a userId as