Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor OIDC calls and added Callback component #77

Merged
merged 4 commits into from
Nov 18, 2024

Conversation

adrienne-deriv
Copy link
Collaborator

@adrienne-deriv adrienne-deriv commented Nov 15, 2024

Description

  • Refactored OIDC functions to have default values and typings
  • Added Callback component used to fetch the access and legacy tokens after redirect from the authorization server (i.e. oauth.deriv.com)

Screenshot 2024-11-15 at 7 59 02 AM

Screen.Recording.2024-11-15.at.11.52.26.AM.mov

Motivation

Please include the motivation behind this change. Why is this change required? What problem does it solve?

Actions

List the actions taken to achieve this change. What steps were followed? What was modified?

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Copy link
Collaborator

@amam-deriv amam-deriv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this is great PR!, however, let's be more careful in adding new libraries to be more specific to the changes required

@@ -42,10 +47,14 @@
"prettier": "3.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sass": "^1.80.6",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is beyond the context of the PR 😅 , let's be more specific when adding changes next time

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, I've added sass just for styling the Callback component for now

align-items: center;

&__header {
border-bottom: 1px solid #00000014;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Q] do we not have any vars css from quill or deriv ui?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do, but I don't think we should set this up here for now because the design is not final yet, this is just a placeholder

src/components/Callback/Callback.tsx Show resolved Hide resolved
@thisyahlen-deriv thisyahlen-deriv merged commit 8020cdf into deriv-com:master Nov 18, 2024
1 check passed
Copy link

🎉 This PR is included in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants