Magic RPC Error: [-32603] Internal error: `Your app does not support this method, use an API key from a Magic Auth app instead.` when clicking on Send button
MahendraBishnoi29 opened this issue ยท 3 comments
โ Prerequisites
- Did you perform a cursory search of open issues? Is this bug already reported elsewhere?
- Are you running the latest SDK version?
- Are you reporting to the correct repository (
magic-sdk
)?
๐ Description
I've cloned the demo app from Magic's Official docs and tried implementing Email OTP functionality using Magic's this Post but when I click on the send button I get a error in console (I've provided all the necessary ENV variables correctly)
๐งฉ Steps to Reproduce
- Clone this repo and run it locally
๐ค Expected behavior
I should get that enter OTP modal and the otp should be successfully sent to my Email like this and Please add a demo with React or Next.js (Codesandbox) because all codesandboxes are for HTML, JavaScript.
๐ฎ Actual behavior
getting Your app does not support this method, use an API key from a Magic Auth app instead.
in console
๐ป Code Sample
Exact Same Code That is Mentioned Here
๐ Environment
Software | Version(s) |
---|---|
magic-sdk |
^13.1.0 |
Browser | Chrome |
yarn |
|
Operating System |
Hi @MahendraBishnoi29 , thank you for posting this issue!
You are getting the error becuase you are using a Magic Connect API key and are calling the login method for a Magic Auth app. The resolution is for you to use a Magic Auth API key.
you will want to use the one on the right, Create Magic Auth app
thank you so much @am-hernandez
Thank you @am-hernandez