Back

MagicURL API ROUTE 404 ERROR

  • 0
  • Auth
  • Web
  • Cloud
Chris Nowicki
17 Mar, 2024, 22:45

I am creating a Magic URL link for a new user. The documents say to use account.createMagicURLSession however that does not exist on the Appwrite 14.0 Client SDK. The only I option I get is account.createMagicURLToken. The console log then says https://cloud.appwrite.io/v1/account/tokens/magic-url 404 NOT FOUND

however, the API docs say the route should be: /account/sessions/magic-url

TL;DR
Error message: MagicURL API ROUTE 404 ERROR Issue: Appwrite Client SDK does not have the 'account.createMagicURLSession' function; only 'account.createMagicURLToken' is available. This leads to a 404 NOT FOUND error for the route 'https://cloud.appwrite.io/v1/account/tokens/magic-url' instead of '/account/sessions/magic-url'. Solution: Update the route to '/account/sessions/magic-url' in accordance with the API documentation. Use the 'account.createMagicURLToken' function provided by the Appwrite 14.0 Client SDK.
Chris Nowicki
17 Mar, 2024, 22:46

MagicURL API ROUTE 404 ERROR

Chris Nowicki
17 Mar, 2024, 22:47

here is the error from the console.log

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more