Skip to content

Conversation

thisyahlen-deriv
Copy link

This pull request introduces several changes to the authentication flow and user interface. The changes include updating dependencies, adding OAuth2 support, and creating a callback page for handling authentication responses. Below is a summary of the most important changes:

Dependency Updates:

  • Updated @deriv-com/auth-client dependency version in package.json to ^1.2.15 from ^1.0.29.

OAuth2 Support:

  • Imported requestOidcAuthentication, TOAuth2EnabledAppList, and useIsOAuth2Enabled from @deriv-com/auth-client in src/components/UserNavbarItem/item.desktop.tsx.
  • Added logic to handle OAuth2 authentication in SignedInActions component in src/components/UserNavbarItem/item.desktop.tsx.

Callback Page:

  • Created CallbackPage component in src/features/Callback/CallbackPage.tsx to handle authentication callback and update login accounts.
  • Exported CallbackPage from src/features/Callback/index.ts.
  • Added a new page src/pages/callback.tsx to render the CallbackPage and hide the navbar during callback processing.

Utility Functions:

  • Added transformAccountsFromResponseBody function in src/utils/index.ts to transform account response data into an array of objects.

Copy link

vercel bot commented Dec 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
deriv-api-docs ❌ Failed (Inspect) Dec 3, 2024 2:03am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant