|
23 | 23 |
|
24 | 24 | ``` |
25 | 25 | ┌─────────────────────────────────────────────────────────────────┐ |
26 | | -│ AUTHENTICATION LAYER │ |
| 26 | +│ AUTHENTICATION LAYER │ |
27 | 27 | ├─────────────────────────────────────────────────────────────────┤ |
28 | | -│ │ |
29 | | -│ ┌────────────────────────┐ ┌───────────────────────────┐ │ |
30 | | -│ │ NextAuth.js v4.24 │ │ Custom Auth System │ │ |
31 | | -│ │ (JWT Strategy) │ │ (Session Storage) │ │ |
32 | | -│ └────────────────────────┘ └───────────────────────────┘ │ |
33 | | -│ │ │ │ |
34 | | -│ │ │ │ |
35 | | -│ ┌────────▼────────┐ ┌─────────▼──────────┐ │ |
36 | | -│ │ NextAuth Routes │ │ Custom Auth Routes │ │ |
37 | | -│ │ │ │ │ │ |
38 | | -│ │ [..nextauth] │ │ /api/auth/login │ │ |
39 | | -│ │ │ │ /api/auth/register │ │ |
40 | | -│ │ │ │ /api/auth/logout │ │ |
41 | | -│ │ │ │ /api/auth/custom- │ │ |
42 | | -│ │ │ │ session │ │ |
43 | | -│ └─────────────────┘ └─────────────────────┘ │ |
44 | | -│ │ │ │ |
45 | | -│ └──────────────┬───────────────┘ │ |
46 | | -│ │ │ |
| 28 | +│ │ |
| 29 | +│ ┌────────────────────────┐ ┌───────────────────────────┐ │ |
| 30 | +│ │ NextAuth.js v4.24 │ │ Custom Auth System │ │ |
| 31 | +│ │ (JWT Strategy) │ │ (Session Storage) │ │ |
| 32 | +│ └────────────────────────┘ └───────────────────────────┘ │ |
| 33 | +│ │ │ │ |
| 34 | +│ │ │ │ |
| 35 | +│ ┌────────▼────────┐ ┌─────────▼───────────┐ │ |
| 36 | +│ │ NextAuth Routes │ │ Custom Auth Routes │ │ |
| 37 | +│ │ │ │ │ │ |
| 38 | +│ │ [..nextauth] │ │ /api/auth/login │ │ |
| 39 | +│ │ │ │ /api/auth/register │ │ |
| 40 | +│ │ │ │ /api/auth/logout │ │ |
| 41 | +│ │ │ │ /api/auth/custom- │ │ |
| 42 | +│ │ │ │ session │ │ |
| 43 | +│ └─────────────────┘ └─────────────────────┘ │ |
| 44 | +│ │ │ │ |
| 45 | +│ └──────────────┬───────────────┘ │ |
| 46 | +│ │ │ |
47 | 47 | │ ┌─────▼─────┐ │ |
48 | | -│ │ proxy.ts │ │ |
49 | | -│ │ (withAuth) │ │ |
50 | | -│ └───────────┘ │ |
51 | | -│ │ |
| 48 | +│ │ proxy.ts │ │ |
| 49 | +│ │ (withAuth)│ │ |
| 50 | +│ └───────────┘ │ |
| 51 | +│ │ |
52 | 52 | └─────────────────────────────────────────────────────────────────┘ |
53 | 53 | ``` |
54 | 54 |
|
|
0 commit comments