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

Use SSX to get generated message and signature on node #83

Open
1 task done
searchableguy opened this issue Feb 14, 2023 · 1 comment
Open
1 task done

Use SSX to get generated message and signature on node #83

searchableguy opened this issue Feb 14, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@searchableguy
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I'm trying to replace siwe with ssx on server side to interact with our API. This results in an error. The driver fields expects windows.ethereum and wraps it into Web3Provider internally which fails if you pass a normal provider. I'm not sure if there is a way to make this work in server side context without windows.ethereum.

Sample Code

const wallet = ethers.Wallet.createRandom();
  const signer = wallet.connect(
    new ethers.JsonRpcProvider("https://eth.rpc.blxrbdn.com")
  );
  const ssx = new SSX({
    resolveEns: false,
    enableDaoLogin: false,
    providers: {
      web3: { driver: signer.provider },
    },
  });
  const session = await ssx.signIn();

Expected Behavior

Allow ability to pass a different signer provider in server side context or add a new method to receive siwe message for signing using the choice of your own signer. This will allow people to remove siwe and move to ssx which seems to be more well maintained going forward.

Steps To Reproduce

No response

Anything else?

No response

@obstropolos obstropolos added the bug Something isn't working label Feb 21, 2023
@obstropolos
Copy link
Contributor

Hey @searchableguy - we're going to start taking a look at this early next week!

Thanks for raising this!

@skgbafa skgbafa added enhancement New feature or request and removed bug Something isn't working labels Mar 8, 2023
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

No branches or pull requests

3 participants