mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-20 05:54:19 +02:00
cleanup code
This commit is contained in:
@@ -61,7 +61,7 @@ async def get_current_user(db: SessionDependency, token: str = Depends(oauth2_sc
|
||||
|
||||
def create_access_token(data: dict, expires_delta: timedelta | None = None):
|
||||
to_encode = data.copy()
|
||||
config = AuthConfig()
|
||||
config = AuthConfig
|
||||
if expires_delta:
|
||||
expire = datetime.now(timezone.utc) + expires_delta
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user