728x90
error 상황
io.jsonwebtoken.security.WeakKeyException:
The specified key byte array is 192 bits which is not secure enough for any JWT HMAC-SHA algorithm.
The JWT JWA Specification (RFC 7518, Section 3.2) states
that keys used with HMAC-SHA algorithms MUST have a size >= 256 bits
(the key size must be greater than or equal to the hash output size).
Consider using the Jwts.SIG.HS256.key() builder (or HS384.key() or HS512.key())
to create a key guaranteed to be secure enough for your preferred HMAC-SHA algorithm.
See https://tools.ietf.org/html/rfc7518#section-3.2 for more information.
error 해결
SecretKey를 256 bits 이상으로 설정하면 해결된다!