samadadi
samadadi
BABetter Auth
Created by samadadi on 3/12/2025 in #help
signout on the server
Suppose I am submitting a Form to the server and I want to sign out in the form handler. So I wanted to know how to properly sign out on the server. Is it enough to just call auth.api.signOut or should I mange the cookie headers too? Is there a section in documentation about server side session handling? please help.
2 replies
BABetter Auth
Created by samadadi on 3/6/2025 in #help
Session size
How many bytes of data can I put in the session specially when the cookie cache enabled?
2 replies
BABetter Auth
Created by samadadi on 2/24/2025 in #bug-reports
[TypeError] Invalid URL
I have this client code:
import { createAuthClient } from "better-auth/react";

export const { signIn, signUp, useSession, sendVerificationEmail } = createAuthClient();
import { createAuthClient } from "better-auth/react";

export const { signIn, signUp, useSession, sendVerificationEmail } = createAuthClient();
Unfortunately when I import useSession hook in my client component and use it I get this error: TypeError: Invalid URL /get-session. Are you passing in a relative URL but not setting the baseURL? I thought it is not required to set baseURL. So is this a bug or I am missing somthing here?
5 replies
BABetter Auth
Created by samadadi on 2/24/2025 in #help
[TypeError] Invalid URL
I have this client code:
import { createAuthClient } from "better-auth/react";

export const { signIn, signUp, useSession, sendVerificationEmail } = createAuthClient();
import { createAuthClient } from "better-auth/react";

export const { signIn, signUp, useSession, sendVerificationEmail } = createAuthClient();
Unfortunately when I import useSession hook in my client component and use it I get this error: TypeError: Invalid URL /get-session. Are you passing in a relative URL but not setting the baseURL? I thought it is not required to set baseURL. So is this a bug or I am missing somthing here?
4 replies