(password, hash string)
| 27 | } |
| 28 | |
| 29 | func checkPasswordHash(password, hash string) bool { |
| 30 | err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password)) |
| 31 | return err == nil |
| 32 | } |
| 33 | |
| 34 | // Login function |
| 35 | func (authService *AuthService) Login(email string, cleanPassword string, refreshToken bool) (response map[string]string, err error) { |