Skip to content

Commit

Permalink
fix: 클레임 생성 스펙대로 Map의 value 자료형을 String 에서 Object로 변경 (#35)
Browse files Browse the repository at this point in the history
- Claims claims = Jwts.claims(payload.getPrivateClaim())
  • Loading branch information
mybloom committed Jun 11, 2022
1 parent df784b7 commit b79f37b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions BE/src/main/java/org/team4/airbnb/auth/domain/JwtPayload.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import java.util.Map;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;

@Getter
@Builder
@AllArgsConstructor
public class JwtPayload {
Expand All @@ -18,9 +20,9 @@ public class JwtPayload {
private final String publicClaim = "http://org.team4.airbnb";

//private claim
private final Map<String, String> privateClaim;
private final Map<String, Object> privateClaim;

public static JwtPayload of(Date issuedAt, Date expiration, Map<String, String> privateClaim){
public static JwtPayload of(Date issuedAt, Date expiration, Map<String, Object> privateClaim){

return JwtPayload.builder()
.issuedAt(issuedAt)
Expand Down

0 comments on commit b79f37b

Please sign in to comment.