DEV Community

Discussion on: Using Domain-Driven Design(DDD)in Golang

Collapse
 
stevensunflash profile image
Steven Victor

Hi Jose,

For we to ever use the Refresh Token, it means the Access Token must have expired(and Redis deletes it automatically).

Collapse
 
cardozo17 profile image
José Antonio Cardozo

Hi Steven. Thanks for the answer. That makes sense. I will check it out it might be something on my implementation. The other thing is I don't see in the code in the frontend where you are encripting the password with the Bcrypt. Is that missing? or am I just don't seeing it?.

Thank you.

Thread Thread
 
stevensunflash profile image
Steven Victor

Hi,
The password is encrypted on the backend.
Go to this path: infrastructure/security/password.go
The function that hashes the password is defined there.

Some comments have been hidden by the post's author - find out more