Commit a89091d
* [#179] 📦 install jsonwebtoken
* [#179] ✨ requestNewToken in middleware
* [#179] ♻️ refactor middleware
* [#179] 🐛 working on middleware token issue
* [#179] ♻️ refactor unused code
* [#179] ✨ add middleware deliver accessToken, refreshToken, and requestNewToken()
* [#179] ♻️ separate requestNewToken function
* [#179] ✨ add TokenApiResponse type
* [#179] ♻️ refactor and apply constants
* [#179] ♻️ delete duplicated code
* [#179] ♻️ change token expired time
---------
Co-authored-by: 장아영 <[email protected]>
Co-authored-by: KingNono1030 <[email protected]>
1 parent 277a7b7 commit a89091d
File tree
13 files changed
+208
-127
lines changed- src
- app
- (pages)/protected
- api/auth
- refresh
- sign-in
- validate
- constants
- queries/auth
- services
- auth
- types/api
13 files changed
+208
-127
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
8 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
15 | 39 | | |
16 | | - | |
17 | 40 | | |
18 | 41 | | |
19 | 42 | | |
20 | 43 | | |
21 | 44 | | |
22 | | - | |
| 45 | + | |
23 | 46 | | |
24 | 47 | | |
25 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments