add refresh tokens

This commit is contained in:
Piotr Domański 2023-04-02 14:51:08 +02:00
parent 28d55d3632
commit 3b3e709e56

View file

@ -47,7 +47,7 @@ async def verify_refresh_token(
) -> AsyncGenerator[User, None]:
try:
payload = jwt.decode(
token, settings.SECRET_KEY, algorithms=[settings.ALGORITHM]
token, settings.REFRESH_SECRET_KEY, algorithms=[settings.ALGORITHM]
)
username: str = payload.get("sub")
if username is None: