Skip to content

feature/oauth#77

Merged
soorq merged 8 commits into
devfrom
feature/oauth
Jun 11, 2026
Merged

feature/oauth#77
soorq merged 8 commits into
devfrom
feature/oauth

Conversation

@AlexandrNel

@AlexandrNel AlexandrNel commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Что сделано

  • Реализован OAuth – бэкенд после авторизации возвращает на техническую страницу /oauth с результатом в search params.
  • Техническая страница OAuthPage читает success и message из params и перенаправляет пользователя на нужный маршрут.
  • Добавлены компоненты OAuthLoginButtons, OAuthSeparator и иконки провайдеров (Google, GitHub, Yandex, ВКонтакте).
  • Типизированы search params OAuth через satisfies и утилитарный тип StringifyValues.
  • Единый конфиг OAUTH_PROVIDERS связывает иконку, цвет и href провайдера, список активных провайдеров приходит с сервера.
  • Добавлена обработка redirect-сообщений на странице входа

Проверка

  • После успешной авторизации через провайдера происходит редирект на профиль.
  • При ошибке происходит редирект на страницу входа, отображается toast.error с сообщением от бэкенда.
  • Прямой переход на /oauth без параметров редиректит на страницу входа без ошибок.
  • Typecheck и линтеры проходят.

@AlexandrNel AlexandrNel requested a review from kapitulin24 as a code owner June 11, 2026 18:59
@AlexandrNel AlexandrNel requested review from kapitulin24 and soorq and removed request for kapitulin24 June 11, 2026 18:59
@github-actions github-actions Bot added core-logic Global providers, api instances and core shared libs features User scenarios and sliced features domain Business entities and models views Pages, widgets and layouts config labels Jun 11, 2026
Comment thread src/entities/auth/api/queries.ts Outdated
Comment thread src/pages/auth/signin/ui/SigninForm.tsx Outdated
Comment thread src/pages/auth/signin/model/useAuthRedirectMessage.ts Outdated
Comment thread src/entities/auth/api/queries.ts Outdated
Comment thread src/pages/auth/signin/ui/SigninPage.tsx
@soorq soorq merged commit ae8cc5d into dev Jun 11, 2026
5 checks passed
@soorq soorq deleted the feature/oauth branch June 11, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config core-logic Global providers, api instances and core shared libs domain Business entities and models features User scenarios and sliced features views Pages, widgets and layouts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants