Get Started

Reference for the Magic SDK for web / client-side JavaScript:


The Magic SDK for client-side JavaScript is your entry-point to secure, passwordless authentication for your web-based app. This guide will cover some important topics for getting started with client-side APIs and to make the most of Magic's features.

  • Install the Magic Client SDK to get started

  • View the API documentation below to learn the methods you'll be using

  • Go to Examples for an introduction to common patterns and use-cases

Magic can support both server-based or serverless web applications. It is up to the developers to implement the Admin SDK to validate the DID Token.


Looking for a server-side API instead? Check out:

๐Ÿ‘‰ Magic Admin SDK for Node.js

๐Ÿ‘‰ Magic Admin SDK for Python


npm install --save magic-sdk

Create an SDK Instance

import { Magic } from 'magic-sdk';
const m = new Magic('API_KEY'); // โœจ