Skip to content

Commit a0927d2

Browse files
committed
Add nbf claim to JWTs. Closes #675.
1 parent bc8d853 commit a0927d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

atr/jwtoken.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def issue(uid: str, *, ttl: int = _ATR_JWT_TTL) -> str:
5656
"iss": _ATR_JWT_ISSUER,
5757
"aud": _ATR_JWT_AUDIENCE,
5858
"iat": now,
59+
"nbf": now,
5960
"exp": now + datetime.timedelta(seconds=ttl),
6061
"jti": secrets.token_hex(128 // 8),
6162
}

0 commit comments

Comments
 (0)