Skip to Content
Anuma SDKExpoInternalFunctionsregisterNotionClient

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

ParameterTypeDefault valueDescription

registrationEndpoint

string

undefined

The RFC 7591 registration endpoint URL.

redirectUri

string

undefined

Redirect URI to register for this client.

clientName

string

"Anuma"

Human-readable name shown in Notion’s consent screen.

Returns

Promise<NotionClientRegistration>

Last updated on