엑세스토큰
-
[JavaScript]리프레시 토큰(Refresh Token)개발공부/JavaScript 2024. 1. 9. 14:21
오늘은 토큰 관련된 내용을 다뤄보고자 한다. (Access Token, Refresh Token) 최근에 진행하고 있는 프로젝트에서 토큰 관련 작업을 담당하게 되었는데 기록한 후 다른 사람들과 공유하면 좋을 거 같아서 글을 쓰게 되었다! 우선 토큰 개념을 알아야 하는 이유부터 찾아봤다. 권한과 보안 사용자가 로그인 상태에서 특정 서비스, 앱에 대한 권한을 부여받은 것을 의미 (사용자가 특정 리소스 접근할 권한) 이를 통제하여 개인 정보 접근에 제한을 둘 수 있어 보안을 강화할 수 있음 인증과 인가 분리 사용자의 인증은 Access Token을 받는 단계에서 이루어지는데, 이를 통해 리소스에 대한 인가를 받을 수 있음 사용자 경험 향상 Access Token 정보로 여러 서비스나 앱에 접근할 수 있음 AP..