How are JWT Auth token validated?

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024
  • #JWT #validation #cybersecurity

Комментарии • 2

  • @RN-jo8zt
    @RN-jo8zt 5 месяцев назад +1

    Hi
    it's really nice explanation ,thanks for this
    you use mysecret key to verified jwt .
    but i just want to know how the other service know what secret key it's using
    is there any way we are sending this secret key to client?

    • @premaseemjain
      @premaseemjain  5 месяцев назад +1

      Here are different ways to send out the JWT validation key to the consumer service as part of the setup:
      1. Email: The validation key can be emailed to the consumer.
      2. REST Endpoint: Expose the key as a REST endpoint that the consumer can poll daily or on-demand. This way, if the validation key changes, the consumer can easily update it.
      3. Push Mechanism/Webhook: Use a push mechanism or webhook to automatically send the updated key to the consumer.