Skip to content

Commit

Permalink
refactor: 인덱싱 오퍼레이터로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hgo641 committed Jan 29, 2024
1 parent d8634e0 commit 351cf08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class AccessTokenClaims(

companion object {
fun from(claims: Map<String, String>): AccessTokenClaims {
val memberId = claims.get(MEMBER_ID)
val memberId = claims[MEMBER_ID]
?: throw AuthException(INVALID_ACCESS_TOKEN)
val authority = claims.get(AUTHORITY)
val authority = claims[AUTHORITY]
?: throw AuthException(INVALID_ACCESS_TOKEN)

return AccessTokenClaims(
Expand Down

0 comments on commit 351cf08

Please sign in to comment.