Emirhan Güneç
BABetter Auth
•Created by Emirhan Güneç on 4/23/2025 in #help
auth.api.getSession doesn't reading Authorization header
https://github.com/Bekacru/create-t3-turbo/blob/main/apps/expo/src/utils/api.tsx i cloned this repo and merged with latest updates in original version, there is only token exists, i missed the cookies. Thanks
8 replies
BABetter Auth
•Created by Emirhan Güneç on 4/23/2025 in #help
auth.api.getSession doesn't reading Authorization header
yeah, this fixed the issue, but im a little confused. So i should pass cookies AND token to headers from expo?
8 replies
BABetter Auth
•Created by Emirhan Güneç on 4/23/2025 in #help
auth.api.getSession doesn't reading Authorization header
@Ping @bekacru
8 replies
BABetter Auth
•Created by Lapis on 2/14/2025 in #help
Hello! I have a specific question about session handling between Expo and Next.js using Better Auth.
@bekacru im getting same error now, with latest versions
7 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
sounds cool, im defintely checking it out 👍
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
my project is a monorepo project which will be have 2-3 nextjs app, 1 expo app and 10+ packages, i want my logic in shared. If you have suggestions for this besides on better auth, I'would love to hear
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
in idea, i want to use auth in tRPC router, and use this router, but i think it will be more complicated than just use authClient.signIn.email...
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
if i use server action in client component it works, but it's basically bad way of using authClient, when you try to use server action on RSC, it will be cookie issue
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
btw, better auth is fantastic library and has great community, keep up with the good work 👏
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
what you suggest to me, if i persist to use RSC, how can i workaround this basically? or it will be worthed?
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
yeah, you're right
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
maybe it will be a plugin, so users can know this behaviour is different than general
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
but from my knowledge, better auth is working currently instant, without needing any refresh, if my solution became a part of better-auth, it will break this 😦
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
sorry for my english btw, im not native speaker
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
can we signal from RSC, after the page reloads or when next time middleware invokes, then we set cookies? Generally all logins/signups ends with full page reload
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
yeah, I know understand well this stuff beyonds, me 🙂
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
maybe it can be a plugin too, it can be added into auth config and users exports a middleware function imported from plugin in middleware.ts
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
I am curious about why isn't ideal, I'm new to auth things, but you could add a step to installation to add middleware from better auth, and this middleware can control cookies, right?
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
i haven't looked at how nextCookies works but i think i have an idea.
nextCookies should try to set cookies in middleware, middleware allows setting cookies. If nextCookies uses middleware, cookies will be set on RSC, client components, routers, basicly all things runs after from middleware
51 replies
BABetter Auth
•Created by Emirhan Güneç on 1/29/2025 in #help
SignIn doesn't work server side
im using ^1.1.14 version
51 replies