Installation problems
Hi, I'm trying to discover better-auth, so I start installing elysia, prisma and then better-auth, except that by following the doc, the "installation" part, from start to finish, I still can't understand how it works, the route localhost:3000/api/auth doesn't work and tells me NOT_FOUND
Solution:Jump to solution
I think it's normal that
/api/auth
is not found.. 😅
There is nothing there to do after all...19 Replies
Hey, did you read Elysia docs as well? Could provide additional info which may have been missed in installation page.
https://www.better-auth.com/docs/integrations/elysia
Elysia Integration | Better Auth
Integrate Better Auth with Elysia.
did i need to do all this part?
You need to mount the handler.
try calling
http://localhost:3000/api/auth/ok
To see what the result isSolution
I think it's normal that
/api/auth
is not found.. 😅
There is nothing there to do after allohw..
it works thx but what did the betterAuthView
What do you mean betterAuthView?
this part
cause i got ok on this route http://localhost:3000/api/auth/ok but other route like http://localhost:3000/api/auth/test did nothing
ok
is a built in path.
test
isn't.
It's used to test.ok, as how i know the route for use betterauth?
You can use the openAPI plugin, which will show you all of the available paths in your setup.
Although in most cases you won't be needing to use those paths, as the BetterAuthClient should be handling all of that for you on the front-end.
i think i need to watch a video for know how to use it
why i don't have routes?

ohw... ok i see on auth/auth/references with openAPI plugin, but i can't have these routes on swagger? @Ping
Not sure how swagger works, you'll have to figure that one out yourself - sorry
ok thx
May I mark this thread as solved? @ɴᴇʟᴇᴏᴋᴏ
yes thx