auth-helpers
sk-auth
auth-helpers | sk-auth | |
---|---|---|
18 | 11 | |
886 | 575 | |
1.2% | - | |
8.3 | 0.0 | |
9 days ago | over 1 year 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.
sk-auth
- Easiest way to add auth to a sveltekit app
-
sk-auth redirect https... ...
I tried to develop authrization with Google Oauth via sk-auth. sk-auth is library of SvelteKit like NextAuth.
-
Spring Boot and AWS Cognito REST API Security configuration
Just to update you on the situation, I have decided that my REST API will not deal with user sign-ups or sign-ins. It will basically respond to the requests coming with JWT tokens. My front-end client will do the user sign-ups and sign-ins. Once a user is authenticated I will be setting up an axios or request client with JWT token provided by AWS Cognito to query my back end API. In this case, I'm looking forward to try out Svelte and found a perfect package to do all that very easily which is sk-auth.
-
I try to use SvelteKitAuth, do you recommend another OAuth2 library?
SvelteKitAuth (last commit the 2022-02-23)
-
Sveltekit with next auth?
Useful if true but I've just integrated sk-auth into my app...
-
Open Source contribution ideas for Svelte/SvelteKit
For example https://github.com/Dan6erbond/sk-auth isn't as actively maintained now and doesn't run on CFW.
- SvelteKit with sk-auth - advice needed.
-
Why is react more popular than vue, when vue is faster and easier to use?
I have. Quite a bit, actually, as I'm the author of SKAuth which is an authentication library for SvelteKit and am also building a larger side project with Svelte.
- SvelteKitAuth enables developers to rapidly implement OAuth and other authentication flows in their SvelteKit apps using a class-based architecture and HTTP only cookies!
-
Initial release of SvelteKitAuth is out!
I'd love to see you guys check out the GitHub repository, give the demo app a look and provide your feedback on what else you would like to see in this project!
What are some alternatives?
sveltekit-prisma-example
sveltekit-next-auth-demo
nextjs-supabase - Multi-tenant NextJS 13 + Supabase
SvelteKit - web development, streamlined
sveltekit-firebase9 - a simple todo app with sveltekit and firebase 9
svelte-kit-cookie-session - ⚒️ Encrypted "stateless" cookie sessions for SvelteKit
supabase-auth-helpers - A collection of framework specific Auth utilities for working with Supabase. [Moved to: https://github.com/supabase-community/auth-helpers]
SvelteKitAuth - Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization! [Moved to: https://github.com/Dan6erbond/sk-auth]
tailwindcss-forms - A plugin that provides a basic reset for form styles that makes form elements easy to override with utilities.
sveltekit-auth-blog - A SvelteKit Template using sk-auth and configured for GoogleOAuth2Provider.
svelte-store
chakra-ui-svelte - ⚡️ Simple, Modular & Accessible UI Components for your Svelte Applications