Using nbf in json web tokens

nbf: Specifies the time until which the JWT MUST be accepted for processing

I found this definition about nbfin json web tokens. But still wondering what use is nbf? Why are we using this? Is this related to the security term?

Any idea would be appreciated.

+4
source share
2 answers

It definitely depends on how you interpret the time.

One of the possible scenarios that I could draw up is literally when the token should last from a certain point in time to another point in time.

, API . , , .

, JWT :

  • iat
  • nbf 12:00.
  • exp 1:00
+12

3 , API.

'nbf' " ".

nbf = 3000, 3 . .

+1

Source: https://habr.com/ru/post/1674361/


All Articles