Skip to content

Commit

Permalink
chore: correct misspelling in lambda expression
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 committed Feb 4, 2024
1 parent afdf20b commit 8726a4e
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 8726a4e

Please sign in to comment.