chore: format
This commit is contained in:
@@ -146,7 +146,11 @@ class AuthsTable:
|
|||||||
def authenticate_user_by_api_key(
|
def authenticate_user_by_api_key(
|
||||||
self, api_key: str, db: Optional[Session] = None
|
self, api_key: str, db: Optional[Session] = None
|
||||||
) -> Optional[UserModel]:
|
) -> Optional[UserModel]:
|
||||||
log.info(f"authenticate_user_by_api_key: ...{api_key[-4:]}" if api_key else "authenticate_user_by_api_key: <empty>")
|
log.info(
|
||||||
|
f"authenticate_user_by_api_key: ...{api_key[-4:]}"
|
||||||
|
if api_key
|
||||||
|
else "authenticate_user_by_api_key: <empty>"
|
||||||
|
)
|
||||||
# if no api_key, return None
|
# if no api_key, return None
|
||||||
if not api_key:
|
if not api_key:
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user