Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers(HttpMethod.GET, "/sensorMappingWithRoom").permitAll()
.requestMatchers(HttpMethod.POST, "/api/reports/anomaly").permitAll()
.requestMatchers(HttpMethod.POST, "/predictedAirQuality").permitAll()
.anyRequest().authenticated() //개발 중
.anyRequest().permitAll()
);

// JWT 필터 & 커스텀 필터 설정
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class ReissueController implements ReissueControllerDocs {
private final JWTUtil jwtUtil;
private final RefreshRepository refreshRepository;

private final long ACCESS_TOKEN_EXP = 1000L * 60 * 30; // 30분
private final long ACCESS_TOKEN_EXP = 10000L * 60 * 30; // 30분
private final long REFRESH_TOKEN_EXP = 1000L * 60 * 60 * 24 * 7; // 7일

public ReissueController(JWTUtil jwtUtil, RefreshRepository refreshRepository) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@ public String setAnomalyReport(AnomalyReportDto dto) throws Exception {
public String firebaseAlarm(String targetToken, String description, User user) {
Message message = Message.builder()
.setToken(targetToken)
.putData("title", "이상치 발생 알림")
.putData("body", description)
.setNotification(com.google.firebase.messaging.Notification.builder()
.setTitle("이상치 발생 알림")
.setBody(description)
.build())
.build();
try {
Notification notification = Notification.builder()
Expand Down