What im missing?
Im using Github provider on next js and hono for api, hono runs on different port, since is used outside of next js, and not nested like it can, but i can login, but then i get this callback ERROR, where im doing something wrong
External Hono Implementation

18 Replies
i dont know if this is an good aproah but seams to fix the problem, i removed the baseUrl from the auth client, and i do that,
with the baseUrl set to the hono server domain, does not work
something is wrong now

while calling signIn.social you can pass in the callback url
with your server url as base
then you wont need a proxy
also I think your hono api is not working correctly
seams to have any issue?
what you recommend to change?
remove the basePath('/api')
and on the github developer portal, the callback should go to the server?
also the pattern is
/api/auth/*
not **
yeswhat should look like the callback url on the signIn.social
http://localhost:4000/api/auth/callback/github
you mean on the function or github dev portal?
on both
if you mean the function then you can just pass in
http://<frontend-url>/home
or somethingis the same?
callback url is where github will redirect you to
you add this in github dev portal
after this where you want your user to be is the url you pass in
signIn.social
you should pass your app's full url thereand there i put the server url?
yes
very nice, seeams to be fixed
thank you bro
:Okay:
i will try now the session token
but if i want to put the base path, i just need to remove the /api/ from /api/auth/*
right?