auth-helpers
ui
auth-helpers | ui | |
---|---|---|
18 | 5 | |
886 | 1,513 | |
1.2% | 0.8% | |
8.3 | 0.0 | |
8 days ago | about 1 month ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
auth-helpers
-
Supabase Authentication Issue with Next.js 13.4 - !session vs !user
I have encountered a similar issue, but I haven't fully found a solution yet. Currently, I'm using the getSession function throughout my server components. Yesterday, I tried running a middleware to refresh the user's session, based on this example: https://github.com/supabase/auth-helpers/blob/main/examples/nextjs/middleware.tsx. This caught my attention because the comment mentioned that the middleware is necessary for any Server Component route using createServerComponentClient. Right now, I'm testing this approach, and so far, I haven't been logged out since yesterday. Do you have that in your application? The main difference between getSession and getUser in supabase is that getSession reads the cookies and is very fast (around 1-2 ms), while getUser makes a call to the supabase API with the access token to retrieve the user and I would assume they also verify the JWT on their end.
-
SvelteKit is awful for building PWAs
F.ex. Have a look how supabase-auth-helper-sveltekit works. This is the "SvelteKit way" to approach authentication. It also works perfectly with invalidate to reload or invalidate data that is connected to the current user session. As pointed out already, there is no reason you should not be able to access your JWT.
-
Supabase Beta May 2023
We have updated the Next.js Auth Helpers package to make it available across the client and server of the App Router. They also now implement server-side auth by default with PKCE - meaning the entire auth flow is now possible server-side.
-
Need some help with auth and nextjs13 (using app folder) that I just can't seem to wrap my head around something trivial
Example
- When to use which - page.ts VS page.server.ts
-
Help with basic Supabase setup on Next.js?
seems like known issue https://github.com/supabase/auth-helpers/issues/497
-
Use base gotrue api instead of auth helper
auth helper for sveltekit: https://github.com/supabase/auth-helpers/tree/main/packages/sveltekit
- How to add protected routes with server components?
- Issues with Sveltekit and Supabase Authentication
-
What do you think about handling protected routes and redirects in middleware?
I do think checking auth in a server component would likely be better for your use here. Supabase has a nice example here: https://github.com/supabase/auth-helpers/tree/main/examples/nextjs-server-components They have a simple case with Middleware, but you wouldn't need to do it that way. Can use "redirect(/login)" from the server component.
ui
-
Authentication in Next.js with Supabase and Next 13
Lastly, the Auth component from the Supabase UI library which we were using to render our auth screens, and handle all the related flows and UI logic (Sign In, Sign Up, Reset Password, etc.) has been deprecated. Components from the original @supabase/ui package were moved into the main Supabase repo, and the package is now deprecated.
-
Is there a way to make the make Supabase Auth Ui React use a popup for third party logins?
Closest things I found to docs was here but didn't see any props that would support popups.
-
User Authentication in Next.js with Supabase
While the default styling of Supabase UI is a good start, more than likely you will want it to match the rest of your app's look and feel. Unfortunately, as of the writing of this article (@supabase/ui version 0.36.0), theming support is not available just yet (though it is coming).
- Customizing the Supabase UI Auth form?
-
📺New Video - Supabase - Quickstart: Vue.js - Auth, Database and Storage Application Video and blog post of the Supabase Quickstart App, written in VueJS; full source code available in video description
We released the the Grid last week, and the UI library about a month ago. We're shipping as fast as possible on the other aspects
What are some alternatives?
sk-auth - Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!
gotrue - An SWT based API for managing users and issuing SWT tokens.
sveltekit-prisma-example
nextjs-supabase-auth - Sample project for setting up Supabase Auth in Next.js
nextjs-supabase - Multi-tenant NextJS 13 + Supabase
tailwindcss-forms - A plugin that provides a basic reset for form styles that makes form elements easy to override with utilities.
sveltekit-firebase9 - a simple todo app with sveltekit and firebase 9
supabase - The open source Firebase alternative.
supabase-auth-helpers - A collection of framework specific Auth utilities for working with Supabase. [Moved to: https://github.com/supabase-community/auth-helpers]
auth-ui - Pre-built Auth UI for React
svelte-store