Open diegomais opened 4 days ago
Additionally, I've noticed that even without a refresh token, the method authenticateWithRefreshToken()
is called, resulting in unnecessary HTTP requests. This behavior seems inefficient and could potentially be avoided if there's no refresh token available.
Could you please also look into this behavior? Optimizing the process to prevent unnecessary requests would be appreciated.
Similarly we're getting hammered with console errors:
Error: Missing refresh token.
Error: Session has already ended.
Error: Session has already ended.
But it doesn't seem like there's anything to do to fix these errors, nor that there's any way to supress them.
Hello,
I'm encountering an issue with the
@workos-inc/authkit-js
library where it logs errors to the browser console even though the errors are expected.Specifically, in the code snippet:
https://github.com/workos/authkit-js/blob/5efd97fa980cc33b548171b91049124883e94f98/src/create-client.ts#L108
It seems like errors are being logged despite the comment indicating that the failure to refresh a session is expected and should be silently ignored. Could you please look into this behavior? It would be great to see the error logging suppressed here unless there's a real issue to address.
Thank you!