// notion integration
Develop a Notion integration with public OAuth callback
Notion's OAuth flow requires the redirect URI to match exactly what's configured. Configure your dev URL via lrok's reserved subdomain and the redirect doesn't drift.
1 · Set up the lrok tunnel
1. Reserve
$ lrok reserve notion-dev2. Run app
$ npm run dev3. Tunnel
$ lrok http 3000 --hint notion-dev
2 · Configure Notion
1. Notion → My integrations → your integration → OAuth Domain
Redirect URIs: https://notion-dev.lrok.io/oauth/callback. The match must be exact.
// notion-specific gotcha
Notion's redirect URI matching is exact — trailing slash, scheme, port. If your callback is https://notion-dev.lrok.io/oauth/callback in the dashboard, your code must redirect to exactly that string. Lower-case the host.