I am happy to announce the release of version 1.0.0
of this module. While the module has been production-ready for quite some time, I never had the opportunity to create the first major version until now. Given that this version incorporates significant changes, I believe it is the perfect moment to establish this initial major release.
What's changed
-
Supabase introduced a new authentication flow (PKCE) a few months ago, which is now the default behavior of the module. However, you can still revert to the old (and less secure) authentication method through the module configuration. To help you seamlessly integrate this new flow, a dedicated section has been added to the documentation. (#219)
-
Building upon the previous point, we have implemented substantial changes to the session management, involving alterations to how Supabase clients are instantiated and how sessions are synchronized between the server and client-side. Consequently, these changes result in some breaking changes, which are listed below.
-
A brand new documentation has been built entirely using Nuxt Studio. Feel free to create PRs to suggest fixes or add any necessary changes to further enhance the documentation. (#210 / #221)
Here's documentation that can help you understand the PKCE authentication flow:
- https://supabase.com/blog/supabase-auth-sso-pkce#server-side-and-mobile-auth
- https://supabase.com/docs/guides/resources/glossary#pkce
⚠️ BREAKING CHANGES ⚠️
useSupabaseAuthClient
has been removed in favor ofuseSupabaseClient
in all casesserverSupabaseClient
is now returning a promise (should be called withawait
in anasync
method)redirect
option is enable by default, follow this guide to update your appclient
option becomesclientOptions
with new default value (including the PKCE flow)cookies
options is split incookieName
andcookieOptions
, default values have not changed
Here si the commit done for updating the demo with the last version: 10e0586
A huge thanks to @Aietes for initialising all those changes and help me built it 💚