Skip to content

Commit 3d8c544

Browse files
committed
Fix typing of the jwt_expires argument
1 parent 772c907 commit 3d8c544

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fastapi_oauth2/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
from typing import List
3+
from typing import Union
34

45
from .client import OAuth2Client
56

@@ -16,7 +17,7 @@ def __init__(
1617
*,
1718
allow_http: bool = False,
1819
jwt_secret: str = "",
19-
jwt_expires: int = 900,
20+
jwt_expires: Union[int, str] = 900,
2021
jwt_algorithm: str = "HS256",
2122
clients: List[OAuth2Client] = None,
2223
):

0 commit comments

Comments
 (0)