Add GitHub login with Supabase: Free AI Prompt | SheCodes

Free AI prompt · The Code Book

Add GitHub login with Supabase

A ready-to-use prompt from the chapter Social Login. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.

The prompt

“Add 'Sign in with GitHub' to my app using Supabase for login. Create a login page with a 'Sign in with GitHub' button that opens the GitHub sign-in window. After they successfully sign in, remember them so they stay logged in, and send them to my /dashboard page.”

How to use it

  1. Copy the prompt and paste it into your AI coding tool.
  2. Check the result in the preview, then ask for changes one at a time: "make the buttons bigger", "use my brand colours".
  3. Read the chapter to understand why it works and what to do next.

More prompts like this

All prompts

Add Google login with Clerk

“Add Google Sign-In to my Next.js app using Clerk. Set up the Clerk provider in my layout, add a sign-in page at /sign-in with Google as the primary option, and protect the /dashboard route so only logged-in users can access it. Show the user's name and avatar in the header when logged in.”

Add multiple social providers

“Add social login to my app with Google, GitHub, and Apple sign-in options. Use Clerk (or Better Auth). Show all three options on the login page with their official brand icons. After login, redirect to /dashboard and show the user's profile info.”

Set up a frontend project

“Set up a new Next.js project with TypeScript, Tailwind CSS, and App Router. Create a clean homepage with a [header/hero/features] layout.”

Add multi-page navigation

“Convert my single-page app into multiple pages with proper navigation. Add routes for [home, about, dashboard, settings].”

Make it responsive

“Make my website fully responsive so it looks great on phones, tablets, and desktops. Use Tailwind CSS breakpoints and make sure the navigation works on mobile with a hamburger menu.”

Set up a backend with supabase

“Set up a backend for my app using Supabase. I need tables for [users, posts, comments]. Include row-level security policies so users can only edit their own data.”