Process
1. user api request
2. enter middleware
3. need auth ( x => logger middleware )
4. session middleware ( iron-session )
5. auth middleware ( get access token or refresh token or response UnAuthorization)
6. logger middleware ( who , what log api request )
7. server axios response ( if error return error response from next api server to client )
8. client get response ( if error catch throw error to error boundary )
9. error boundary catch error
728x90
'Structure > diagram' 카테고리의 다른 글
카카오 rest api login, 서버 jwt, refresh token 프로세스 (0) | 2022.07.14 |
---|