gegi
gegi
CCConvex Community
Created by gegi on 5/12/2025 in #support-community
get user data
Thank you!
4 replies
CCConvex Community
Created by jason on 3/27/2025 in #general
Have you had a chance to explore `Better Auth`
excited 😁
169 replies
CCConvex Community
Created by jason on 3/27/2025 in #general
Have you had a chance to explore `Better Auth`
unlucky πŸ˜”
169 replies
CCConvex Community
Created by jason on 3/27/2025 in #general
Have you had a chance to explore `Better Auth`
Maybe you can use that for your implementation
169 replies
CCConvex Community
Created by jason on 3/27/2025 in #general
Have you had a chance to explore `Better Auth`
better auth provides a plugin to handle cookies https://www.better-auth.com/docs/integrations/tanstack
169 replies
CCConvex Community
Created by jason on 3/27/2025 in #general
Have you had a chance to explore `Better Auth`
Heyo @erquhart did you find the timeto make a tanstack start example working? 😁
169 replies
CCConvex Community
Created by jason on 3/27/2025 in #general
Have you had a chance to explore `Better Auth`
but it’s more a ergonomic preference
169 replies
CCConvex Community
Created by jason on 3/27/2025 in #general
Have you had a chance to explore `Better Auth`
I would like to have the information on beforeLoad in tanstack start
169 replies
CCConvex Community
Created by jason on 3/27/2025 in #general
Have you had a chance to explore `Better Auth`
Sadly not getting it to work as expected with the email provider in my tanstack start project. Looking forward for a tanstack start demo page :(
169 replies
CCConvex Community
Created by jason on 3/27/2025 in #general
Have you had a chance to explore `Better Auth`
and I want to make it avaiable to my context
169 replies
CCConvex Community
Created by jason on 3/27/2025 in #general
Have you had a chance to explore `Better Auth`
I'm trying something like this now:
const getUser$ = createServerFn({ method: "GET" }).handler(async () => {
const webRequest = getWebRequest();

if (!webRequest) {
throw new Error("Web request not available");
}

const { headers } = webRequest;
const session = await authClient.getSession({
fetchOptions: { headers },
query: { disableCookieCache: true },
});

return session?.data?.user || null;
});
const getUser$ = createServerFn({ method: "GET" }).handler(async () => {
const webRequest = getWebRequest();

if (!webRequest) {
throw new Error("Web request not available");
}

const { headers } = webRequest;
const session = await authClient.getSession({
fetchOptions: { headers },
query: { disableCookieCache: true },
});

return session?.data?.user || null;
});
169 replies