Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Latest commit

 

History

History
37 lines (21 loc) · 1.2 KB

customization.md

File metadata and controls

37 lines (21 loc) · 1.2 KB
description
Learn how to customize the Magic user onboarding experience.

🎨 Customization

Magic includes a default pending modal UI to save developers implementation time and to get passwordless login working ASAP. But we also allow developers to have full customizability of their user on-boarding experience.

Default branding

Customize the UI & email

You can customize the logo and colors of the Magic link email, confirmation screen, and pending modal on the Branding tab in the Magic Dashboard:

App with customized branding

Custom Email HTML Template

(You'll be able to set a custom html template for the Magic link email soon!)

Bring your own UI

To completely hide away our Pending Modal UI, you can simply pass false to the showUI attribute while initiating the Magic link login.

import { Magic } from 'magic-sdk';
const magic = new Magic("YOUR_PUBLIC_API_KEY");

await magic.loginWithMagicLink({
    email,
    showUI: false // Default "true", setting "false" will hide loading screen
});