Skip to content

Commit

Permalink
Feat: 커스텀 로그인 객체 처리 부분 리팩토링
Browse files Browse the repository at this point in the history
#45 - feat: 커스텀 로그인 객체를 받을 수 있도록 메소드 추가 (#46)
  • Loading branch information
morenow98 authored Jan 25, 2024
1 parent 3c4710e commit 51c5d9e
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package cotato.bookitlist.config.security.jwt;

import java.util.Collection;
import java.util.Collections;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Collection;
import java.util.Collections;

@AllArgsConstructor
@Getter
public class AuthDetails implements UserDetails {
Expand Down Expand Up @@ -51,4 +51,8 @@ public boolean isCredentialsNonExpired() {
public boolean isEnabled() {
return true;
}

public Long getUserId() {
return Long.parseLong(userId);
}
}

0 comments on commit 51c5d9e

Please sign in to comment.