Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example: Add example with Supabase Auth #2277

Merged

Conversation

ridwansameer
Copy link
Contributor

What does it do

Adds an example of using TanStack start with Suapabase auth.

How to run?

Simply add your Supabase Keys to your environment variable and it should work out of the box.

If there's any feedback, let me know. First time hacking something together using Supabase, and first time using TanStack router/start as well!

Copy link

nx-cloud bot commented Sep 6, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit a7416fc. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

Copy link

pkg-pr-new bot commented Sep 7, 2024

Open in Stackblitz

More templates

@tanstack/history

pnpm add https://pkg.pr.new/@tanstack/history@2277

@tanstack/react-cross-context

pnpm add https://pkg.pr.new/@tanstack/react-cross-context@2277

@tanstack/react-router

pnpm add https://pkg.pr.new/@tanstack/react-router@2277

@tanstack/react-router-with-query

pnpm add https://pkg.pr.new/@tanstack/react-router-with-query@2277

@tanstack/router-arktype-adapter

pnpm add https://pkg.pr.new/@tanstack/router-arktype-adapter@2277

@tanstack/router-cli

pnpm add https://pkg.pr.new/@tanstack/router-cli@2277

@tanstack/router-devtools

pnpm add https://pkg.pr.new/@tanstack/router-devtools@2277

@tanstack/router-generator

pnpm add https://pkg.pr.new/@tanstack/router-generator@2277

@tanstack/router-plugin

pnpm add https://pkg.pr.new/@tanstack/router-plugin@2277

@tanstack/router-vite-plugin

pnpm add https://pkg.pr.new/@tanstack/router-vite-plugin@2277

@tanstack/router-valibot-adapter

pnpm add https://pkg.pr.new/@tanstack/router-valibot-adapter@2277

@tanstack/router-zod-adapter

pnpm add https://pkg.pr.new/@tanstack/router-zod-adapter@2277

@tanstack/start

pnpm add https://pkg.pr.new/@tanstack/start@2277

@tanstack/virtual-file-routes

pnpm add https://pkg.pr.new/@tanstack/virtual-file-routes@2277

@tanstack/start-vite-plugin

pnpm add https://pkg.pr.new/@tanstack/start-vite-plugin@2277

commit: a7416fc

Copy link
Member

@SeanCassiere SeanCassiere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the example locally with my own Supabase credentials and the example worked. It could use some better error-handling, but that's more of a user-side implementation detail.

Pushing this through.

@SeanCassiere SeanCassiere merged commit 89f9209 into TanStack:main Sep 7, 2024
5 checks passed
@ridwansameer
Copy link
Contributor Author

Thanks! I'll try and take a look and fix up the error-handling later. I think I need to remove the "Sign up instead?" link since supabase doesn't directly specify it's not an existing account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants