From 6ec69875973cdf1ecf390a2d7bae31f73273552b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B8=D0=BD=D0=B5=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA=20?= =?UTF-8?q?=D0=A2=D0=B8=D0=BC=D1=83=D1=80=20=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=B8=D1=87?= Date: Tue, 12 May 2026 12:39:52 +0300 Subject: [PATCH] KVN-421 Fix typo --- service/user_authentication.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service/user_authentication.go b/service/user_authentication.go index 6bf25e6..ffcc3ca 100644 --- a/service/user_authentication.go +++ b/service/user_authentication.go @@ -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,