new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Supabase · Auth · all subjects

oauth providers/notion

13 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Notion OAuth setup steps overview

Setting up Notion logins for a Supabase application consists of 3 parts: Create and configure a Notion Application in the Notion Developer Portal, retrieve the OAuth client ID and OAuth client secret and add them to the Supabase Project, and add the login code to the Supabase JS Client App.

Notion integration type and capabilities required

When creating a Notion integration, you must select "Public integration" under Integration type and "Read user information including email addresses" under Capabilities.

Notion redirect URI setup

After selecting "Public integration" when creating a Notion integration, you will see an option to add "Redirect URIs". This redirect URI must be configured as part of the integration setup.

Notion OAuth credentials retrieval location

After creating a Notion integration, the "OAuth client ID" and "OAuth client secret" can be retrieved from the "OAuth Domain and URIs" tab in the Notion Developer Portal.

Notion signInWithOAuth JavaScript example

To sign in a user with Notion in JavaScript, call supabase.auth.signInWithOAuth() with 'notion' as the provider: async function signInWithNotion() { const { data, error } = await supabase.auth.signInWithOAuth({ provider: 'notion', }) }

Notion signInWithOAuth Flutter example

To sign in a user with Notion in Flutter, call supabase.auth.signInWithOAuth() with OAuthProvider.notion: Future<void> signInWithNotion() async { await supabase.auth.signInWithOAuth( OAuthProvider.notion, redirectTo: kIsWeb ? null : 'my.scheme://my-host', authScreenLaunchMode: kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, ); }

Notion signInWith Kotlin example

To sign in a user with Notion in Kotlin, call supabase.auth.signInWith() with Notion as the Provider: suspend fun signInWithNotion() { supabase.auth.signInWith(Notion) }

Notion SignIn C# example

To sign in a user with Notion in C#, call supabase.Auth.SignIn() with Provider.Notion as the provider: var state = await supabase.Auth.SignIn(Provider.Notion); var signInUrl = state.Uri;

Sign out from Notion session JavaScript

To sign out a user from a Notion session in JavaScript, call supabase.auth.signOut(): async function signOut() { const { error } = await supabase.auth.signOut() }

Sign out from Notion session Flutter

To sign out a user from a Notion session in Flutter, call supabase.auth.signOut(): Future<void> signOut() async { await supabase.auth.signOut(); }

Sign out from Notion session Kotlin

To sign out a user from a Notion session in Kotlin, call supabase.auth.signOut(): suspend fun signOut() { supabase.auth.signOut() }

Sign out from Notion session C#

To sign out a user from a Notion session in C#, call supabase.Auth.SignOut(): await supabase.Auth.SignOut();

Notion Developer Portal access

The Notion Developer Portal can be accessed at https://www.notion.so/my-integrations or https://developers.notion.com/.

Give your agent this brain