Best way to protect routes in TanStack Start?
/dashboard*
, so they redirect to /login
if no session exists? I don't see this aspect in the example: https://github.com/better-auth/better-auth/tree/main/examples/tanstack-example
Below is my attempt, but session is always null
, even if the user is authenticated.
```ts...elysia with better auth not working
script "dev" was terminated by signal SIGABRT
Could be a problem related to bun?
the server runs if i remove betterAuthView
...
Google auth redirecting to the main site instead of the webpage
process.env.BETTER_AUTH_URL
, which is my Express API
where http://localhost:3000 is my Next.js website
...Help with Email + Phone before 2FA Flow
Refresh Spotify access token
Social login Account creation with additional field
Social login with separate backend domain
Problem with OAuth (Google) using BetterAuth with Express for backend and Next.js Frontend
How to debug addPasskey not working in Production (Vercel)?
passkey
plugin, I can add a passkey locally/development but not in production (Vercel).
I'm using a simple button in NextJS to trigger adding a passkey:
```
const { data, error } = await authClient.passkey.addPasskey();...perform action after successful email verification
Manually create a session
not getting rate limited
Password not updating on resetPassword
Best way to run code after user logs in/out
Query tables created by better auth with kysely

How to Force Email-OTP Plugin to Use Redis Instead of PostgreSQL
email-otp
plugin for authentication. The primary database is PostgreSQL, and Redis is set up as a secondary storage. I assumed that sessions and OTP verification would be handled through Redis.
However, when attempting to send an OTP, I get this error:
```...Image not updating when using genericOAuth client.oauth2.link
client.signIn.oauth2
the user info I get from my OAuth provider contains a image parameter that goes into my user image field in my db.
But when I try linking an existing user using client.oauth2.link
the user info I get from my OAuth provider still contains a image parameter but that info never gets updated in my user image field in my db.
https://www.better-auth.com/docs/plugins/generic-oauth#linking-oauth-accounts...Unable to send OTP
SolidJS useSession hook - refetch
const session = authClient.useSession();
await session().refetch();
const session = authClient.useSession();
await session().refetch();