Skip to content

Why does parse expects callers to manually pass T when it's always TokenClaims? #25

@Jasperav

Description

@Jasperav

I don't understand why the parse method on Parser not just returns a TokenClaims rather than T. TokenClaims is also not publicly accessible so I have to copy paste the struct in my project to make it work, I don't think this is ergonomic for all crates which calls the parse method to manually add a struct.

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