Skip to content

Add specific claims to token  #9

@luigizuccarelli

Description

@luigizuccarelli

Example snippet when creating

JWT.create()
    .withClaim("name", 123)
    .withArrayClaim("array", new Integer[]{1, 2, 3})
    .sign(Algorithm.HMAC256("secret"));

Reading the claim

Map<String, Claim> claims = jwt.getClaims();    //Key is the Claim name
Claim claim = claims.get("name");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions