Skip to content

feat: exposing options to allow better flow customisation#164

Closed
falleco wants to merge 5 commits intomatter-labs:mainfrom
sophon-org:main
Closed

feat: exposing options to allow better flow customisation#164
falleco wants to merge 5 commits intomatter-labs:mainfrom
sophon-org:main

Conversation

@falleco
Copy link
Contributor

@falleco falleco commented Jul 28, 2025

Description

Hello, we've been using zksync-sso on and upcoming project, and needed to change it to allow better customisation:

  • communicator: Basically, even though we had the Communicator interface, the WalletProvider was always creating the popup. We changed it so that it’s now possible to pass any Communicator when instantiating the provider. We still keep PopupCommunicator as the default, just like it is today.
  • PopupCommunicator: It’s now possible to provide height and width, as well as its initial positioning.
  • StorageLike on Signer: on the Signer we were forcing the storage to be localStorage, and on some contexts we need to use other things here, so we changed to be able to provide it all the way down to Signer instance a StorageLike option.

Additional context

I think thats all, if you need us to make any adjustment, please ping us. Other than that, the build is still executing and the existing tests are passing.

@falleco falleco changed the title Exposing options to allow better customization: storage, communicator and popup positioning feat: exposing options to allow better flow customisation Jul 28, 2025
Copy link
Contributor

@cpb8010 cpb8010 left a comment

Choose a reason for hiding this comment

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

No complaints!

@falleco
Copy link
Contributor Author

falleco commented Jul 29, 2025

Can this be merged as it is and a new version released?

@cpb8010 cpb8010 enabled auto-merge (squash) July 29, 2025 21:38
@cpb8010 cpb8010 added the enhancement New feature or request label Jul 29, 2025
@cpb8010 cpb8010 mentioned this pull request Jul 29, 2025
@cpb8010
Copy link
Contributor

cpb8010 commented Aug 1, 2025

Merged here: #167

For whatever reason the merge commits weren't signed, but rebasing worked since there were no conflicts!

@cpb8010 cpb8010 closed this Aug 1, 2025
auto-merge was automatically disabled August 1, 2025 01:30

Pull request was closed

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants