Skip to content

Asymmetric API - can set system_time_t, but not get #70

Description

@GeneratedNickname

The method add_claim has an overload for system_time_t, but get_claim_value does not. One would expect symmetry in that regard.

obj.add_claim(jwt::registered_claims::issued_at, chrono::system_clock::now());
auto iat = obj.payload().get_claim_value<chrono::system_clock::time_point>(jwt::registered_claims::issued_at); // Does not compile.

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