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

Add initial entry point for vault flows with SDK token #194

Merged
merged 4 commits into from
Apr 17, 2024

Conversation

elizabethmv
Copy link
Contributor

This PR is an initial entrance to allow the latest vault flow (ID token) to work the new SDK token. It will not enable the e2e flow just yet.

When SDK token is passed alone, internally we will set the ID token as the SDK token value. We also will use this new getCustomerId function that decodes the SDK token for UX improvements to prevent an API call/correct loading state.

@elizabethmv elizabethmv requested a review from a team as a code owner April 17, 2024 15:10
Copy link
Contributor

@ravishekhar ravishekhar left a comment

Choose a reason for hiding this comment

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

left a minor comment, looks good otherwise.

return options.customer_id || "";
}

return "";
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we return a null in case there is no customer id?

src/script.test.js Show resolved Hide resolved
@elizabethmv elizabethmv merged commit e01e295 into main Apr 17, 2024
2 checks passed
@elizabethmv elizabethmv deleted the sdk-token-vaulting branch April 17, 2024 15:55
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.

3 participants