Where do I need to use JWT?

后端 未结 3 999
暗喜
暗喜 2021-01-04 05:48

The structure and protocol aside, I was wondering where JWT fits into client/server communication?

  • Is it here to replace authentication and session cookies?
3条回答
  •  失恋的感觉
    2021-01-04 06:11

    IMO JWT is mostly useful when the issuer (who generates the JWT) and the receivers (who verify the JWT) belong to different autonomous parties. Although it is possible, there is no need to replace authentication/session-cookie/token-storage/etc with JWT.

提交回复
热议问题