mirror of
https://github.com/cna-bootcamp/lifesub.git
synced 2026-01-21 19:16:23 +00:00
add cicd
This commit is contained in:
parent
db0374974d
commit
a6cc583a2d
@ -18,7 +18,8 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
import static java.util.stream.Collectors.toList;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@ -40,7 +41,7 @@ public class MemberServiceImpl implements MemberService {
|
|||||||
// 사용자의 권한 정보 생성
|
// 사용자의 권한 정보 생성
|
||||||
Collection<? extends GrantedAuthority> authorities = member.getRoles().stream()
|
Collection<? extends GrantedAuthority> authorities = member.getRoles().stream()
|
||||||
.map(SimpleGrantedAuthority::new)
|
.map(SimpleGrantedAuthority::new)
|
||||||
.collect(Collectors.toList());
|
.toList();
|
||||||
|
|
||||||
return jwtTokenProvider.createToken(member, authorities);
|
return jwtTokenProvider.createToken(member, authorities);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user