Skip to content

Allow jwt::params::algorithms with enum values #91

@GeneratedNickname

Description

@GeneratedNickname

Currently needed:

const auto obj = jwt::decode(enc_str, jwt::params::algorithms({jwt::alg_to_str(jwt::algorithm::HS256), jwt::alg_to_str(jwt::algorithm::HS512)}), jwt::params::secret(key));

Expected:

const auto obj = jwt::decode(enc_str, jwt::params::algorithms({jwt::algorithm::HS256, jwt::algorithm::HS512}), jwt::params::secret(key));

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