-
Notifications
You must be signed in to change notification settings - Fork 670
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
feat: Single Sign On #1963
Conversation
Signed-off-by: Fernando Zavalia <[email protected]>
@@ -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'), |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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'] |
There was a problem hiding this comment.
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.
No description provided.