diff --git a/internal/auth/auth.service.go b/internal/auth/auth.service.go index 1f845fb..5838953 100644 --- a/internal/auth/auth.service.go +++ b/internal/auth/auth.service.go @@ -105,7 +105,7 @@ func (s *serviceImpl) VerifyGoogleLogin(_ context.Context, in *proto.VerifyGoogl } if !IsEmailChulaStudent(email) { - return nil, status.Error(codes.PermissionDenied, "Email is not a Chula student") + return nil, status.Error(codes.Unauthenticated, "Email is not a Chula student") } user, err := s.userSvc.FindByEmail(context.Background(), &userProto.FindByEmailRequest{Email: email})