Skip to content

Commit

Permalink
bug: 기수값 토큰 파싱 수정 (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddingmin authored Jan 14, 2025
1 parent 922b68e commit 6ce4e84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class JWTTokenProvider(
val tokenType = claims.header[TOKEN_TYPE_HEADER_KEY] ?: throw RuntimeException()
if (tokenType != ACCESS_TOKEN_TYPE_VALUE) throw RuntimeException()

val generation = claims.header[GENERATION_KEY] ?: throw AuthenticationTokenGenerationExpiredException()
val generation = claims.payload[GENERATION_KEY] ?: throw AuthenticationTokenGenerationExpiredException()
if (generation != depromeetProperties.generation) throw AuthenticationTokenGenerationExpiredException()

val userId = claims.payload[USER_ID_CLAIM_KEY] as? String? ?: throw RuntimeException()
Expand Down

0 comments on commit 6ce4e84

Please sign in to comment.