mirror of
https://github.com/jwtk/jjwt.git
synced 2025-03-09 06:46:50 +00:00
fixed erroneous code snippet
This commit is contained in:
parent
0420ae07ed
commit
39b456b1a3
@ -12,7 +12,7 @@ random.nextBytes(key);
|
||||
|
||||
Claims claims = JWTs.claims().setIssuer("Me").setSubject("Joe");
|
||||
|
||||
String jwt = JWTs.builder().setClaims(claims).signWith(SigningAlgorithm.HS256, key).compact();
|
||||
String jwt = JWTs.builder().setClaims(claims).signWith(SignatureAlgorithm.HS256, key).compact();
|
||||
```
|
||||
|
||||
How easy was that!?
|
||||
|
Loading…
x
Reference in New Issue
Block a user