Skip to content

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

@GeneratedNickname

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.

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