discoverNotionOAuthEndpoints
discoverNotionOAuthEndpoints():
Promise<NotionOAuthEndpoints>
Defined in: src/lib/auth/notion-primitives.ts:167
Discover OAuth server metadata from Notion’s well-known endpoints.
Follows the two-step RFC 8414 flow:
/.well-known/oauth-protected-resourceto find the authorization server.<authServer>/.well-known/oauth-authorization-serverfor metadata.
Falls back to NOTION_OAUTH_CONFIG if discovery fails.
Returns
Promise<NotionOAuthEndpoints>
Last updated on