안녕하세요.

스프링부트 로그인 구현 중에 맞은 오류에요.

JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted.

오류 해결 방법은 

|
V

.setSingingKey(secretKey) 에서 .getBytes()를 뒤에 붙여줘요.

이미지 내용이 왜 저것뿐이냐면 저 오류가 저 상태에서 나오기 때문에요 OR 시크릿 키를 서로 다르게 설정한 경우도요

이 오류를 경험하신 분들이면 똑같은 코드이기 때문에 이렇게만 올려요.

반응형

+ Recent posts