Skip to content

Commit

Permalink
Removendo função async da aula 06
Browse files Browse the repository at this point in the history
  • Loading branch information
dunossauro committed Jul 24, 2024
1 parent 22d5f10 commit 10df50c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion aulas/06.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ from fast_zero.schemas import TokenData

oauth2_scheme = OAuth2PasswordBearer(tokenUrl='token')

async def get_current_user(
def get_current_user(
session: Session = Depends(get_session),
token: str = Depends(oauth2_scheme),
):
Expand Down
2 changes: 1 addition & 1 deletion codigo_das_aulas/06/fast_zero/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def verify_password(plain_password: str, hashed_password: str):
oauth2_scheme = OAuth2PasswordBearer(tokenUrl='token')


async def get_current_user(
def get_current_user(
session: Session = Depends(get_session),
token: str = Depends(oauth2_scheme),
):
Expand Down
2 changes: 1 addition & 1 deletion codigo_das_aulas/07/fast_zero/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def verify_password(plain_password: str, hashed_password: str):
oauth2_scheme = OAuth2PasswordBearer(tokenUrl='auth/token')


async def get_current_user(
def get_current_user(
session: Session = Depends(get_session),
token: str = Depends(oauth2_scheme),
):
Expand Down
2 changes: 1 addition & 1 deletion codigo_das_aulas/08/fast_zero/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def verify_password(plain_password: str, hashed_password: str):
oauth2_scheme = OAuth2PasswordBearer(tokenUrl='auth/token')


async def get_current_user(
def get_current_user(
session: Session = Depends(get_session),
token: str = Depends(oauth2_scheme),
):
Expand Down
2 changes: 1 addition & 1 deletion codigo_das_aulas/09/fast_zero/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def verify_password(plain_password: str, hashed_password: str):
oauth2_scheme = OAuth2PasswordBearer(tokenUrl='auth/token')


async def get_current_user(
def get_current_user(
session: Session = Depends(get_session),
token: str = Depends(oauth2_scheme),
):
Expand Down
2 changes: 1 addition & 1 deletion codigo_das_aulas/10/fast_zero/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def verify_password(plain_password: str, hashed_password: str):
oauth2_scheme = OAuth2PasswordBearer(tokenUrl='auth/token')


async def get_current_user(
def get_current_user(
session: Session = Depends(get_session),
token: str = Depends(oauth2_scheme),
):
Expand Down
2 changes: 1 addition & 1 deletion codigo_das_aulas/11/fast_zero/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def verify_password(plain_password: str, hashed_password: str):
oauth2_scheme = OAuth2PasswordBearer(tokenUrl='auth/token')


async def get_current_user(
def get_current_user(
session: Session = Depends(get_session),
token: str = Depends(oauth2_scheme),
):
Expand Down
2 changes: 1 addition & 1 deletion codigo_das_aulas/12/fast_zero/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def verify_password(plain_password: str, hashed_password: str):
oauth2_scheme = OAuth2PasswordBearer(tokenUrl='auth/token')


async def get_current_user(
def get_current_user(
session: Session = Depends(get_session),
token: str = Depends(oauth2_scheme),
):
Expand Down

0 comments on commit 10df50c

Please sign in to comment.