본문 바로가기

코딩/장고

jwt 토큰이란

1. Post /users/login with username and password


2. Create a JWT with a secret


3. Returns the JWT to the Browser


4. Sends the JWT on the Authorization Header


5. Check JWT signature. Get user information from the JWT


6. Sends response to the client


서버에서 JWT토큰을 만들어서 보내면 사용자는 요청 할 때 마다 이 토큰을 보내야 한다.