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

feat: Single Sign On #1963

Merged
merged 17 commits into from
Aug 8, 2023
Merged

feat: Single Sign On #1963

merged 17 commits into from
Aug 8, 2023

Conversation

fzavalia
Copy link
Contributor

@fzavalia fzavalia commented Aug 4, 2023

No description provided.

@coveralls
Copy link

coveralls commented Aug 4, 2023

Coverage Status

coverage: 38.66% (+0.1%) from 38.555% when pulling cf05219 on feat/single-sign-on into d3e23de on master.

@@ -6,6 +6,7 @@ module.exports = override(
path.resolve(__dirname, 'src'),
path.resolve(__dirname, 'node_modules/react-virtualized-auto-sizer'),
path.resolve(__dirname, 'node_modules/decentraland-connect/node_modules/@walletconnect'),
path.resolve(__dirname, 'node_modules/@walletconnect')
path.resolve(__dirname, 'node_modules/@walletconnect'),
path.resolve(__dirname, 'node_modules/@dcl/single-sign-on-client'),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Package has some unsupported operators by the bundler version used here like ??. So it has to be added in the overrides.

"homepage": "",
"jest": {
"moduleNameMapper": {
"@dcl/single-sign-on-client": "identity-obj-proxy"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As the module is an ESM and not CommonJs, jest doesn't like it. Doing this will replace it in tests with a mockable stub.

@@ -49,13 +48,11 @@ export function initStore() {
paths: [
['ui', 'archivedBidIds'],
['ui', 'preview', 'isTryingOn'],
['identity', 'data']
Copy link
Contributor Author

Choose a reason for hiding this comment

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

By removing this, the identity is not persisted in local storage anymore. It is now persisted in the iframe so there is no reason for it.

@fzavalia fzavalia merged commit 8354023 into master Aug 8, 2023
5 checks passed
@fzavalia fzavalia deleted the feat/single-sign-on branch August 8, 2023 17:40
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