Comments (3)
I am experiencing the same issue, but I am using Next.js 14.2.3. The behavior is identical: the user gets redirected to the login page instead of the change password page after clicking the reset password link. Any solutions or workarounds would be greatly appreciated.
from supabase.
Apparently, Nuxt's middleware is ran 2 times : first during the server side rendering and a second time during the hydration process (client side)
By logging, I noticed that the user is not connected in the server side middleware but it is in the client side.
As a workaround, I added a return statement in my middleware when running server side like so :
export default defineNuxtRouteMiddleware(async () => {
if (import.meta.server) return
const user = useSupabaseUser()
if (!user.value) {
const localePath = useLocalePath()
return await navigateTo(localePath('login'))
}
})
I believe you should be able to do the same thing using Next.js
But that is not ideal : you would prefer to be connected server side, since this workaround allows the user to have a glimpse at the page during its loading time but i have no idea how & no answer to this issue so far.
from supabase.
As @ek-ma said, this is expected behaviour of Nuxt, although not ideal behaviour this is the recommended implementation from Nuxt.
I would close this for now as it is Framework specific behaviour rather than a bug with Supabase.
If you do want to add it to the docs, feel free to open a PR and we can reopen this while the PR is in review!
from supabase.
Related Issues (20)
- Unable to add facebook login to my React Native app HOT 5
- Supabase needs a Microsoft provider for External Entra ID (EEID) HOT 1
- Supabase MFA RLS example doesn't work
- 406 error hitting /organizations using REST API HOT 2
- Documentation Inconsistency: "Extension in Public" Security Advisor Resolution HOT 4
- Incomplete '_analytics' schema
- When reading a declared vaiable (once initialized from a jsonb input) in a database function (in plpgsql) gives another value when read from nested blocks HOT 1
- When I do a db pull it drops mfa_factors_last_challenged_at_key and this cause the application to break
- API Settings Page redirects to default home page in self hosted docker HOT 6
- .RedirectTo not being respected at Email template on href
- Unable to send any email HOT 1
- 401 error when upload file to selfhost instance HOT 1
- Word 'compute' is there twice on Pricing & Fees page HOT 2
- Authentication failure in Graphiql - Self Host Docker HOT 8
- Upload video times error, try picture resources normal, through the management panel HOT 1
- Turnstile captcha is being bypassed on signUp
- Confusing OIDC login instructions.
- [@supabase/ssr] - [SvelteKit]: Create A Client: Missing typescript documentation
- you really should disclose about what features are available on self hosted vs paid so people wont waste their time on supabase
- you really should disclose about what features are available on self hosted vs paid so people wont waste their time on supabase HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supabase.