Skip to content

Feature/connect-and-disconnect-oauth-provider#79

Merged
kapitulin24 merged 8 commits into
devfrom
feature/connect-oauth
Jun 16, 2026
Merged

Feature/connect-and-disconnect-oauth-provider#79
kapitulin24 merged 8 commits into
devfrom
feature/connect-oauth

Conversation

@AlexandrNel

Copy link
Copy Markdown
Collaborator

Что сделано

  • OAuth: привязка/отвязка провайдеров — на странице профиля добавлен раздел "Связанные аккаунты" с возможностью подключить/отключить OAuth-провайдера (Яндекс, ВК, GitHub). При подключении выполняется редирект на провайдера, при отключении — мутация без редиректа + инвалидация кэша.
  • ProfilePage — новая страница-обработчик для OAuth-редиректа обратно в профиль (показывает toast об успехе/ошибке).
  • QueryParamsHandler — универсальный клиентский компонент для показа toast-уведомлений из query-параметров (success, message), переиспользуется на страницах.
  • Рефакторинг: добавлены authKeys для query key factory; исправлена опечатка connecteOAuthProvder → connectOAuthProvder; удалён дублирующийся AuthRedirectHandler из signin; в OAuthPage добавлена передача success/message через URL при редиректе.

Проверка

  • Зайти на /profile, проверить отображение секции "Связанные аккаунты"
  • Нажать "Привязать Яndex" – должен выполниться редирект на OAuth провайдера
  • После подтверждения – редирект обратно в профиль с toast-уведомлением
  • Нажать "Отвязать" – провайдер должен отвязаться без редиректа, появиться toast

@AlexandrNel AlexandrNel requested a review from soorq June 12, 2026 23:18
@AlexandrNel AlexandrNel requested a review from kapitulin24 as a code owner June 12, 2026 23:18
@github-actions github-actions Bot added ui-kit Shared UI components, styles and storybook 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 12, 2026
Comment thread src/features/handle-query-params/ui/QueryParamsHandler.tsx
Comment thread src/widgets/app-sidebar/ui/AppSidebar.tsx Outdated
@AlexandrNel AlexandrNel force-pushed the feature/connect-oauth branch from 0761ed1 to 115c8c5 Compare June 13, 2026 15:21
… to SVG format, and move them to `public` folder, remove unnecessary props in `OAuthButton`.
@AlexandrNel AlexandrNel force-pushed the feature/connect-oauth branch from 115c8c5 to c45d423 Compare June 15, 2026 13:04
Comment thread src/entities/auth/api/http.ts
@github-actions github-actions Bot removed the ui-kit Shared UI components, styles and storybook label Jun 15, 2026
@AlexandrNel AlexandrNel force-pushed the feature/connect-oauth branch from c3554be to 9f8fd4e Compare June 15, 2026 15:20
@kapitulin24 kapitulin24 self-requested a review June 16, 2026 09:17
@kapitulin24 kapitulin24 merged commit c774090 into dev Jun 16, 2026
5 checks passed
@kapitulin24 kapitulin24 deleted the feature/connect-oauth branch June 16, 2026 09:20
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.

3 participants