KVN-421 Fix typo

This commit is contained in:
Синельник Тимур Романович committed 2026-05-12 12:39:52 +03:00
1 parent ac8a556442
commit 6ec6987597
1 file changed
+4 -4
+4 -4
View File
@@ -145,7 +145,7 @@ func (s UserAuthentication) authenticate(
if err != nil {
return nil, errors.WithMessage(err, "auth repo authenticate")
}
return s.convertAuthReponse(resp, setting.skipAppAuth), nil
return s.convertAuthResponse(resp, setting.skipAppAuth), nil
}
authData, err := s.cache.Get(ctx, setting.authEndpoint, token)
@@ -156,7 +156,7 @@ func (s UserAuthentication) authenticate(
return nil, errors.WithMessage(err, "auth repo authenticate")
}
if !resp.Authenticated {
return s.convertAuthReponse(resp, setting.skipAppAuth), nil
return s.convertAuthResponse(resp, setting.skipAppAuth), nil
}
err = s.cache.Set(
ctx,
@@ -168,7 +168,7 @@ func (s UserAuthentication) authenticate(
if err != nil {
return nil, errors.WithMessage(err, "auth cache set")
}
return s.convertAuthReponse(resp, setting.skipAppAuth), nil
return s.convertAuthResponse(resp, setting.skipAppAuth), nil
case err != nil:
return nil, errors.WithMessage(err, "auth cache get")
default:
@@ -180,7 +180,7 @@ func (s UserAuthentication) authenticate(
}
}
func (s UserAuthentication) convertAuthReponse(resp *entity.UserAuthenticateResponse, skipAppAuth bool) *domain.AuthenticateUserResponse {
func (s UserAuthentication) convertAuthResponse(resp *entity.UserAuthenticateResponse, skipAppAuth bool) *domain.AuthenticateUserResponse {
return &domain.AuthenticateUserResponse{
Authenticated: resp.Authenticated,
ErrorReason: resp.ErrorReason,