Skip to content

Commit

Permalink
Routes: Auth - Worldbuilding data is not needed for return user data
Browse files Browse the repository at this point in the history
  • Loading branch information
BertiRean committed Oct 4, 2023
1 parent fc8c7ca commit e15ea3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def login(form_data: Annotated[OAuth2PasswordRequestForm, Depends()]):
)

# Create access token
parsed_user = jsonable_encoder(obj=db_user, exclude={"password", "characters"})
parsed_user = jsonable_encoder(obj=db_user, exclude={"password", "world_building", "characters"})
access_token_expires = timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES)
access_token = create_access_token(
data={"sub": db_user.email}, expires_delta=access_token_expires
Expand Down

0 comments on commit e15ea3a

Please sign in to comment.