Skip to content

Commit

Permalink
chore: correct misspelling in lambda expression (jhipster#25080)
Browse files Browse the repository at this point in the history
Observed a misspelling in the JwtAuthenticationTestUtils.java.ejs template using the
JwtClaimsSet.builder setting claims via a Lambda expression.

s/customClain/customClaim

Fixes jhipster#25079
  • Loading branch information
timothystone-knsl authored Feb 4, 2024
1 parent afdf20b commit 0c8f955
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class JwtAuthenticationTestUtils {
.issuedAt(now)
.expiresAt(now.plusSeconds(60))
.subject(user)
.claims(customClain -> customClain.put(AUTHORITIES_KEY, Collections.singletonList("ROLE_ADMIN")))
.claims(customClaim -> customClaim.put(AUTHORITIES_KEY, Collections.singletonList("ROLE_ADMIN")))
.build();

JwsHeader jwsHeader = JwsHeader.with(JWT_ALGORITHM).build();
Expand Down

0 comments on commit 0c8f955

Please sign in to comment.