Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

MagicConnectConnector uses the RPC API KEY instead of the MAGIC API KEY for magic link endpoint #57

Open
nnons opened this issue Mar 20, 2023 · 0 comments

Comments

@nnons
Copy link

nnons commented Mar 20, 2023

Describe the bug
When logging in using RainbowKit + Magic Connector the wrong API key is used to authenticate to the endpoint https://auth.magic.link/<API-KEY> the API KEY that is used which is causing the error is the connector.magicLinkSdkConfiguration.network.rpcUrl instead of connector.options.apiKey

The following is an example of my RainbowMagicLink Connector:
image

To Reproduce
Steps to reproduce the behavior:

  1. Setup your NextJS app with RainbowKit Provider + RainbowMagicLink Connector
  2. Use the ConnectButton to use Magic Link
  3. Enter an email -> Submit
  4. See error in console

Expected behavior
200 responses on auth.magic.link endpoints

Screenshots
The request sent after submitting an email
image

Additional context
Magic Team is aware and confirms this is not expected behavior.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant