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/twitch

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

Twitch OAuth setup overview

Setting up Twitch logins for a Supabase application consists of 3 parts: Create and configure a Twitch Application in the Twitch Developer Console, add Twitch OAuth Consumer keys to the Supabase Project dashboard, and add login code to the Supabase JS Client App.

Twitch Developer Console access

To access the Twitch Developer Console, go to dev.twitch.tv and click on 'Log in with Twitch' at the top right. Two-Factor Authentication must be enabled on the Twitch Account at https://www.twitch.tv/settings/security before proceeding. After logging in, navigate to the Twitch Developer Console at dev.twitch.tv/console.

Create Twitch application

In the Twitch Developer Console, click on '+ Register Your Application' at the top right. Enter the application name, paste the OAuth Redirect URL (callback URL), select a category for the app, check the CAPTCHA box, and click 'Create'.

Retrieve Twitch OAuth credentials

To get Twitch OAuth credentials, click 'Manage' at the right of the application entry in the Twitch applications list. Copy the Client ID from the application details page. Click 'New Secret' to create a new Client Secret and copy it.

signInWithOAuth JavaScript example for Twitch

JavaScript code to sign in with Twitch using Supabase: import { createClient } from '@supabase/supabase-js'; const supabase = createClient('https://your-project-id.supabase.co', 'sb_publishable_...'); async function signInWithTwitch() { const { data, error } = await supabase.auth.signInWithOAuth({ provider: 'twitch', }); }

signInWithOAuth Flutter example for Twitch

Dart code to sign in with Twitch using Supabase: Future<void> signInWithTwitch() async { await supabase.auth.signInWithOAuth( OAuthProvider.twitch, redirectTo: kIsWeb ? null : 'my.scheme://my-host', authScreenLaunchMode: kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, ); }

signInWithOAuth Kotlin example for Twitch

Kotlin code to sign in with Twitch using Supabase: suspend fun signInWithTwitch() { supabase.auth.signInWith(Twitch) }

signInWithOAuth C# example for Twitch

C# code to sign in with Twitch using Supabase: var state = await supabase.Auth.SignIn(Provider.Twitch); var signInUrl = state.Uri;

Give your agent this brain