Notion OAuth callback
Auth
Notion OAuth callback
Notion redirects the browser here after the user approves the
connection. We exchange the code for an access token, persist it
in org_integrations for the bound org, then 302 back to
/?notion=<status> so the client can react.
Public route — trust comes from the state nonce, not from a session.
GET
Notion OAuth callback
Documentation Index
Fetch the complete documentation index at: https://docs.archyon.app/llms.txt
Use this file to discover all available pages before exploring further.