Skip to Content

handleNotionCallback

handleNotionCallback(callbackPath: string, walletAddress: string | undefined): Promise<string | null>

Defined in: src/lib/auth/notion.ts:738 

Handle the OAuth callback - exchange code for tokens This is done directly with Notion (no backend needed due to PKCE)

Parameters

ParameterTypeDescription

callbackPath

string

The callback path used during authorization

walletAddress

string | undefined

Wallet address for token encryption (optional)

Returns

Promise<string | null>

Last updated on