Sign in with Google
OAuth 2.0 authorization code flow, step by step.
In this diagram
- Sign in with Google
- Click “Sign in”
- Google consent screen
- Allowed?
- Redirect back with ?code=
- Server swaps code for tokens
- client secret stays server-side
- Create session
- Back to app
- yes
- no