magiclabs/magic-js

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)
image

Error ๐Ÿ‘‡๐Ÿป
image

๐Ÿงฉ Steps to Reproduce

  1. 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.
image

๐Ÿ˜ฎ 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.

Screenshot 2023-06-27 at 3 55 03 PM
you will want to use the one on the right, Create Magic Auth app

thank you so much @am-hernandez

Thank you @am-hernandez