[TypeError] Invalid URL
I have this client code:
Unfortunately when I import
useSession
hook in my client component and use it I get this error:
TypeError: Invalid URL /get-session. Are you passing in a relative URL but not setting the baseURL?
I thought it is not required to set baseURL
. So is this a bug or I am missing somthing here?2 Replies
have you tried setting the basse url and does that fix it?
This also might work
Thanks for the response. It was a simple bug in the library and it is solved in version 1.2.x