Skip to content

Add console logging for token errors #33

Open
@photonsphere-org

Description

@photonsphere-org

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions