mirror of https://github.com/tiangolo/fastapi.git
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
This commit is contained in:
parent
b304109c2f
commit
fe216eb467
|
|
@ -98,7 +98,7 @@ async def get_current_user(token: str = Depends(oauth2_scheme)):
|
|||
if username is None:
|
||||
raise credentials_exception
|
||||
token_data = TokenData(username=username)
|
||||
except ExpiredSignatureError: # Check signature expiry
|
||||
except ExpiredSignatureError: # Check signature expiry
|
||||
raise credentials_exception
|
||||
except JWTError:
|
||||
raise credentials_exception
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]):
|
|||
if username is None:
|
||||
raise credentials_exception
|
||||
token_data = TokenData(username=username)
|
||||
except ExpiredSignatureError: # Check signature expiry
|
||||
except ExpiredSignatureError: # Check signature expiry
|
||||
raise credentials_exception
|
||||
except JWTError:
|
||||
raise credentials_exception
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]):
|
|||
if username is None:
|
||||
raise credentials_exception
|
||||
token_data = TokenData(username=username)
|
||||
except ExpiredSignatureError: # Check signature expiry
|
||||
except ExpiredSignatureError: # Check signature expiry
|
||||
raise credentials_exception
|
||||
except JWTError:
|
||||
raise credentials_exception
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]):
|
|||
if username is None:
|
||||
raise credentials_exception
|
||||
token_data = TokenData(username=username)
|
||||
except ExpiredSignatureError: # Check signature expiry
|
||||
except ExpiredSignatureError: # Check signature expiry
|
||||
raise credentials_exception
|
||||
except JWTError:
|
||||
raise credentials_exception
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ async def get_current_user(token: str = Depends(oauth2_scheme)):
|
|||
if username is None:
|
||||
raise credentials_exception
|
||||
token_data = TokenData(username=username)
|
||||
except ExpiredSignatureError: # Check signature expiry
|
||||
except ExpiredSignatureError: # Check signature expiry
|
||||
raise credentials_exception
|
||||
except JWTError:
|
||||
raise credentials_exception
|
||||
|
|
|
|||
Loading…
Reference in New Issue