-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REFACTOR]: TokenValidator와 TokenGenerator 추가로 TokenService 가독성 증대 및 패키지 경로 수정 #109
Conversation
lateinit var sut: TokenGenerator | ||
val userId = "1234" | ||
|
||
beforeTest { | ||
jwtProperty = JwtProperty().apply { | ||
accessToken = JwtProperty.TokenProperties().apply { | ||
expiration = 10000 | ||
secret = "lnp1ISIafo9E+U+xZ4xr0kaRGD5uNVCT1tiJ8gXmqWvp32L7JoXC9EjAy0z2F6NVSwrKLxbCkpzT+DZJazy3Pg==" | ||
secret = | ||
"lnp1ISIafo9E+U+xZ4xr0kaRGD5uNVCT1tiJ8gXmqWvp32L7JoXC9EjAy0z2F6NVSwrKLxbCkpzT+DZJazy3Pg==" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
원래 secret을 저렇게 하드코딩 하나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HS512 알고리즘을 적용하려면 어느 정도 길이의 key가 필요해서 무작위로 넣었습니다. 나중에 fixture로 빼서 refactoring할 예정입니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
무작위가 아니라 저희 키값을 넣어놓으셨는데요 ;;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
자세히 보면 다릅니다. 자세히 보아야 아름다워요
📄 Summary
🙋🏻 More