Skip to content

Add specific claims to token  #9

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");

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions