Skip to content

Conversation

ArmCM
Copy link
Collaborator

@ArmCM ArmCM commented Sep 3, 2023

No description provided.

@ArmCM ArmCM requested a review from vcjuliocesar September 3, 2023 02:47
@ArmCM ArmCM self-assigned this Sep 3, 2023
@ArmCM ArmCM force-pushed the refactor/suggestions_to_refactor_code branch from a60920a to e25d744 Compare September 3, 2023 02:52
def login(user: UserCreate):
validate_password(user)

token: str = create_token(user.dict())
Copy link
Collaborator Author

@ArmCM ArmCM Sep 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duda 🤔 , cual es el tipo de dato exacto que debe ser el token?

ya que aqui indicas que token debe ser de tipo string pero el método create_token retorna un dict.


y el IDE me marco un error, busque y me indica el dict esta deprecated para la versión 2 de pydantic

https://docs.pydantic.dev/latest/migration/#changes-to-pydanticbasemodel

pero desconozco si se hizo así por alguna razón .Aquí es a tu consideración bro

@ArmCM ArmCM force-pushed the refactor/suggestions_to_refactor_code branch 2 times, most recently from 45a878d to 98a1edb Compare September 4, 2023 07:19
@ArmCM ArmCM force-pushed the refactor/suggestions_to_refactor_code branch from 98a1edb to ea2411b Compare September 4, 2023 07:19
@ArmCM ArmCM force-pushed the refactor/suggestions_to_refactor_code branch from f289db6 to 7630bc0 Compare September 4, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant