Karamazov89
BABetter Auth
•Created by Karamazov89 on 2/6/2025 in #help
Browser back button after signing out lets you get inside private route
After signing out and redirecting to a public route, if the browser's "back" button is clicked, it allows you to access the previous protected route (i.e. a page that should be only available if there is a session). It seems the session is not checked.
14 replies
BABetter Auth
•Created by Karamazov89 on 2/6/2025 in #bug-reports
Change email: the second verification email (to the new email) does not redirect
When changing email:
1. First verification email is sent to current email
2. Clicking on the link redirects correctly to the defined callbackUrl, also triggers sending second verification email
3. Second verification email is sent to new email
4. Clicking on the link returns a json instead of redirecting
Also, changing email does not update the normalizedEmail column when using better-auth-harmony
4 replies
BABetter Auth
•Created by Karamazov89 on 2/5/2025 in #help
Cannot delete user when sessions are in secondary storage instead of database
When a secondary storage is setup, so sessions are there instead of main database, I try to delete a user but it seems better-auth still expects a sessions table in the main database. Is this expected or a bug?
For context:
- Secondary storage (Upstash Redis)
- Main database (postgreSQL with DrizzleORM)
- No cookie caching
9 replies
BABetter Auth
•Created by Karamazov89 on 2/5/2025 in #help
Session is always null inside a "before hook"
I am trying to access ctx.context.session inside a "before hook", and it is always returning null even when user is signed in.
Is this an expected behavior?
For context, I set up secondary storage (Upstash Redis), so sessions are there and not persisted on main database (postgreSQL with DrizzleORM). Also: no cookie caching.
3 replies