Discord auth scopes
Different frontend and backend URL with social logins
Apple authentificaiton
Next.js + elysia.js cookie session issue

Error sign up Invalid `db[getModelName(model)].create()` invocation in

2FA email login with `auth.api`: Ensure verification is completed?
auth.api.signInEmail
to sign in to a user with 2FA (TOTP) enabled, how do I ensure that the 2FA verification has been completed for that session? I can always say that after signing in, the user is redirected to the 2FA verification flow, but I don't see any immediate Better-Auth-native way of blocking the user from simply changing the URL and go to a different page again and thus avoid 2FA.
Should the result of the auth.api.verifyTOTP
perhaps be stored in the Session
table for easy look-up to ensure that the user has indeed successfully completed the verification? Or am I completely missing something here, for instance that the user shouldn't actually be logged (i.e., no Session is created) in unless they complete 2FA?
Possible quirk: I don't use the client-side authClient, I have all interactions on server-side using auth.api.{method}
and I've done all necessary migrations and TOTP enabling/disabling from user profile works as expected. I use fullstack SvelteKit with interactions via form actions....Better Auth + Hono + Nextjs ( JStack ) Cookies
Auth service for a microservice
cloudflare error
Dynamically create Role and Permission.
Hono + Better-auth + Lambda Cookies
Is there any way to create organization after user create hook?
headers
and pass userId
in the body insteadAuthClient not respecting baseURL
Retrieving the linked google `email` for credentials registered user
emailAndPassword
where a single account is created. Is it possible to gain information about another account with the same user
when linking a google account? I see that in the account
table, there is no way to retrieve the email.
My use-case is displaying the email where its possible that the user registered with a different google email as the one that he registered with (mismatch between google account and user
email)...Forget Password Security/Rate limits
forgetPassword
?
For example, can we prevent generating a new reset password entry for a given value
id if there are already X non-expired entries for it?
Additionally, whatβs the purpose of creating a new entry for the same value
instead of updating the existing one or deleting the old one?
...Invalid token on resetPassword
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
...BETTER_AUTH_URL=http://localhost:YOUR_PORT
, and it worked for me, google redirects to the url in the env