Stripe creating subscription: Unauthorized 401
useSession returns null

Cloudflare Worker exceeded CPU time limit, while sign-up/email.

Getting FORBIDDEN (403) error when using authClient.admin

Organization: Determine what team a user belongs to
teamId
associated to the model so that we can determine what team they belong to within an organization? I don't believe I see a teamId
associated to the model.
This is important as, when I fetch the full organization information, I want to be able to create team buckets but I cannot do that if I do not know what teamId
values a member is associated with....
How to revoke all sessions after reset password from forget password link?
authClient.revokeSessions()
to do this but it need an loggedin sesison.
Also i think about one other solution to login user using the email and newPassword but there is no way to get the email from the forget password link.
Althought i can add an extra searchparam in the link before sending but i am looking for better way....session schema is missing

Slow API response time until sign out & sign in again
pnpm run dev
my api calls are super slow - around 1 ~ 3 seconds. This happens only when I stop the server (without signing out) and start it back again. The app seems to be super slow. What seems to fix it is to sign out and sign in again, then it gets back to nromal and the GET calls drop do 20 - 250ms. Until of course the next time when I stop the dev server and start it back again.
Did anyone else noticed such issue?...
Error on Signup with OTP
Issue with Session Revocation and Middleware in Next.js

Nextjs middleware not working

Expo Google login
Authentication with Express backend + Next.js frontend
https://www.better-auth.com/docs/integrations/next#for-nextjs-release-1517-and-below...
Plugin to extend organization plugin
annotations forbetterAuth and createAuthClient
nk I fuc-ked up typescript by updating it?
both betterAuth and createAuthClient throw annotations errors.
The inferred type of 'betterAuthClient' cannot be named without a reference to '@/node_modules/better-auth/dist/shared/better-auth.BAfIsot3'. This is likely not portable. A type annotation is necessary.ts(2742)...declaration
and declarationMap
to false in your tsconfig
2. if it is a library, you're probably exporting a function that needs it's return type annotated. Good thread with some solutions here: https://github.com/pnpm/pnpm/issues/6089...
Rate Limit doesn't work for /send-verification-email
auth.api.sendVerificationEmail
from server bypasses the rate limitations, it only works when request is coming from the client using authClient.sendVerificationEmail
Cannot set additionalField when calling signUp.email
referredBy
field during user registration using signUp.email
, but TypeScript is rejecting it with the following error:
"Object literal may only specify known properties, and 'referredBy' does not exist in type "
1. I've properly configured referredBy
in my auth.ts
configuration:...Importing TWO_FACTOR_ERROR_CODES – Is It Possible?
Discord auth scopes