Choosing the Right OAuth2 Flow for Corti Integrations
Code sample:
Code sample:
client_secret
and handles the token exchange.Step | Component | Description |
---|---|---|
1 | Frontend | Redirects user to Corti login |
2 | Corti | Redirects back to your app with code |
3 | Backend | Exchanges code + client secret for tokens Responds with session/token, redirects to frontend |
redirect_uri
client_secret
must not be exposed to the frontendCode sample: