Skip to content

Commit

Permalink
Updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ramijames committed Nov 3, 2024
1 parent 8f7a24d commit 5e25e86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Supabase Auth Example
![]

The auth example that Supabase provides isn't actually a good solution. When building off of it, I found that I was having intermittent session expirations. It gives a solid base for understanding the basics of what Supabase is, and how their system works, but it does not provide developers with a best-practice that they can use to build their own projects.
# Supabase Auth Example

This template project is intended to do that.
This template project is intended to provide a best-practice example for setting up Supabase auth.

It uses these Nuxt 3 modules:

Expand Down Expand Up @@ -67,3 +67,5 @@ These are located in Supabase under **Authentication > Configuration > Email Tem
This allows the auth.js middleware to differentiate between OAuth and the Magic Link.

## Database setup

Since this example currently only uses Supabase authentication, there is no database setup required.
4 changes: 0 additions & 4 deletions pages/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ const supabase = useSupabaseClient();
const user = useSupabaseUser();
console.log('magic link user:', user)
// https://dumiidynefgwjqrdpjzg.supabase.co/auth/v1/verify?token=pkce_40ef39c9af453488b817c21208729750bfc0a58ad62db3951775bcd2&type=magiclink&redirect_to=http://localhost:3000/
const reset = () => {
errorbox.value = ""
notification.value = ""
Expand Down
Binary file added public/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5e25e86

Please sign in to comment.