Skip to content

Commit cedae93

Browse files
committed
feat: Add TokenInfo (#3)
1 parent c02d404 commit cedae93

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.gdsc_teamb.servertoyproject.jwt;
2+
3+
import lombok.AllArgsConstructor;
4+
import lombok.Builder;
5+
import lombok.Data;
6+
7+
@Builder
8+
@Data
9+
@AllArgsConstructor
10+
// 클라이언트에 토큰을 보내기 위한 DTO
11+
public class TokenInfo {
12+
private String grantType;
13+
private String accessToken;
14+
private String refreshToken;
15+
}

server-toy-project/src/main/resources/application.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ spring:
1717
ddl-auto: update
1818
properties:
1919
hibernate:
20-
format_sql: true
20+
format_sql: true
21+
22+
jwt:
23+
secret: VlwEyVBsYt9V7zq57TejMnVUyzblYcfPQye08f7MGVA9XkHa

0 commit comments

Comments
 (0)