_Zaizen_
Explore posts from serversBABetter Auth
•Created by _Zaizen_ on 2/18/2025 in #help
Sending a mail after email verification
Found the way to do it:
in the hooks catch the /verify-email path and elaborate from there
2 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
Already tried putting the static plugin after the api route but that doesn't solve the issue
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
I will write about this on the elhsia discord too so we can understand fully what's happening. Will report back if I get any info
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
@bekacru @Aziz
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
wow, this has been a pain to find.
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
by commenting that line everything start working fine
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
the static plugin
.use(staticPlugin({ prefix: "/" }))
for some strange reason eats away that path
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
I FOUND THE F*ING ISSUE
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
Btw in the example the swagger plugin for elysia is already loaded in
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
What if in the swagger dashboard there's none of the auth routes listed?
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
but everything is handled by authClient.signIn.email
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
THanks, I really can't figure out why the register/login works but the useSession doesn't... I think I'm going insane 🤣 (btw, thanks for the really fast responses, this has been great, will definetly recommend better-auth to other devs in the future, you really care about the DX)
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
https://github.com/Anulo2/BetterAuthIssue/tree/sqlite sqlite edition
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
Gonna push to the repo the sqlite version in a few minutes
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
btw: I've also tried this with sqlite as an adapter
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
Already did, In the exmaple it returns "i'm a teapot" (my desired content for when an error is caught) and logs the error said in the message
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
I discovered this while building the example that you see in the repo
46 replies
BABetter Auth
•Created by _Zaizen_ on 2/4/2025 in #help
useSession cannot reach get-session endpoint
After more testing it actually doesn't work in localhost, should have specified
46 replies