Skip to content

Commit

Permalink
add one more test case to output normal jwt token for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehu committed Sep 28, 2016
1 parent b198a37 commit 544feff
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ public void longLivedJwt() throws Exception {
System.out.println("***LongLived JWT***: " + jwt);
}

@Test
public void normalJwt() throws Exception {
JwtClaims claims = getTestClaims();
claims.setExpirationTimeMinutesInTheFuture(10);
String jwt = JwtHelper.getJwt(claims);
System.out.println("***JWT***: " + jwt);
}

private JwtClaims getTestClaims() {
JwtClaims claims = JwtHelper.getDefaultJwtClaims();
claims.setClaim("user_id", "steve");
Expand Down

0 comments on commit 544feff

Please sign in to comment.