add refresh tokens
This commit is contained in:
parent
28d55d3632
commit
3b3e709e56
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ async def verify_refresh_token(
|
||||||
) -> AsyncGenerator[User, None]:
|
) -> AsyncGenerator[User, None]:
|
||||||
try:
|
try:
|
||||||
payload = jwt.decode(
|
payload = jwt.decode(
|
||||||
token, settings.SECRET_KEY, algorithms=[settings.ALGORITHM]
|
token, settings.REFRESH_SECRET_KEY, algorithms=[settings.ALGORITHM]
|
||||||
)
|
)
|
||||||
username: str = payload.get("sub")
|
username: str = payload.get("sub")
|
||||||
if username is None:
|
if username is None:
|
||||||
|
|
Loading…
Reference in a new issue