registerNotionClient
registerNotionClient(
registrationEndpoint:string,redirectUri:string,clientName:string):Promise<NotionClientRegistration>
Defined in: src/lib/auth/notion-primitives.ts:219
Register a new OAuth client dynamically.
Registers as a public client (token_endpoint_auth_method: "none")
so no client secret is needed for token exchange (PKCE is used instead).
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
|
|
|
|
The RFC 7591 registration endpoint URL. |
|
|
|
|
Redirect URI to register for this client. |
|
|
|
|
Human-readable name shown in Notion’s consent screen. |
Returns
Promise<NotionClientRegistration>
Last updated on