mirror of https://github.com/tiangolo/fastapi.git
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
This commit is contained in:
parent
c788898ff9
commit
05526e6c17
|
|
@ -118,7 +118,7 @@ async def get_current_user(
|
|||
username: str = payload.get("sub")
|
||||
if username is None:
|
||||
raise credentials_exception
|
||||
scope: str = payload.get("scope", "")
|
||||
scope: str = payload.get("scope", "")
|
||||
token_scopes = scope.split(" ")
|
||||
token_data = TokenData(scopes=token_scopes, username=username)
|
||||
except (JWTError, ValidationError):
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ async def get_current_user(
|
|||
username: str = payload.get("sub")
|
||||
if username is None:
|
||||
raise credentials_exception
|
||||
scope: str = payload.get("scope", "")
|
||||
scope: str = payload.get("scope", "")
|
||||
token_scopes = scope.split(" ")
|
||||
token_data = TokenData(scopes=token_scopes, username=username)
|
||||
except (JWTError, ValidationError):
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ async def get_current_user(
|
|||
username: str = payload.get("sub")
|
||||
if username is None:
|
||||
raise credentials_exception
|
||||
scope: str = payload.get("scope", "")
|
||||
scope: str = payload.get("scope", "")
|
||||
token_scopes = scope.split(" ")
|
||||
token_data = TokenData(scopes=token_scopes, username=username)
|
||||
except (JWTError, ValidationError):
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ async def get_current_user(
|
|||
username: str = payload.get("sub")
|
||||
if username is None:
|
||||
raise credentials_exception
|
||||
scope: str = payload.get("scope", "")
|
||||
scope: str = payload.get("scope", "")
|
||||
token_scopes = scope.split(" ")
|
||||
token_data = TokenData(scopes=token_scopes, username=username)
|
||||
except (JWTError, ValidationError):
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ async def get_current_user(
|
|||
username: str = payload.get("sub")
|
||||
if username is None:
|
||||
raise credentials_exception
|
||||
scope: str = payload.get("scope", "")
|
||||
scope: str = payload.get("scope", "")
|
||||
token_scopes = scope.split(" ")
|
||||
token_data = TokenData(scopes=token_scopes, username=username)
|
||||
except (JWTError, ValidationError):
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ async def get_current_user(
|
|||
username: str = payload.get("sub")
|
||||
if username is None:
|
||||
raise credentials_exception
|
||||
scope: str = payload.get("scope", "")
|
||||
scope: str = payload.get("scope", "")
|
||||
token_scopes = scope.split(" ")
|
||||
token_data = TokenData(scopes=token_scopes, username=username)
|
||||
except (JWTError, ValidationError):
|
||||
|
|
|
|||
Loading…
Reference in New Issue