Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add console logging for token errors #33

Open
maridonkers opened this issue Oct 28, 2022 · 0 comments
Open

Add console logging for token errors #33

maridonkers opened this issue Oct 28, 2022 · 0 comments

Comments

@maridonkers
Copy link

maridonkers commented Oct 28, 2022

Currently errors in Conduit.Data.Jwt are silently ignored because toAuth uses hush and errors in Lefts are dropped to Nothing.

When for example Webgear Realworld is used for a server, the following token error is reported:

JSONDecodeError: (Named "Jwt" (AtKey "username" MissingValue))

(Because apparently the Webgear Realworld implementation at the server does not encode username and exp in the login response. Things like these are hard to find without console logging of token errors.)

In maridonkers/purescript-react-realworld branch tokenlogging there's console logging added. Will do a pull request for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant