Dashboard
To start, go to your Dashboard's auth tab. Click "Custom Magic Code Email", and you're ready to go.
Variables
We provide a handful of variables you can use in both your subject line and body template:
{code}, the magic code, e.g. 123456. Note, this variable is required in both the subject and body.{user_email}, the recipient user's email address, e.g. happyuser@gmail.com{app_title}, your app's name
Using a variable is as easy as adding the variable's name in curly brackets, e.g. {variable_name}.
<p>Hi {user_email}, here's your code for {app_title}:</p>
<strong>{code}</strong>
Custom sender addresses
You can also set Instant's email's from and reply-to fields to an address on your own domain.
If you provide a custom sender address, you'll need to confirm it before we can start delivering from it.
Our email partner, Postmark, will send a confirmation to the provided address with a link to verify. Until the address is verified, emails will continue to be sent from Instant's default auth sender (auth@pm.instantdb.com).
If you are an LLM trying to learn how to develop with Instant, here are all of the links to the docs:
- Getting started w/ React
- Getting started w/ React Native
- Getting started w/ Vanilla JS
- Getting started w/ SolidJS
- Getting started w/ Svelte
- Getting started w/ TanStack Start
- Create Instant App
- Recommended Workflow
- Using LLMs
- Init
- Modeling data
- Writing data
- Reading data
- Infinite Queries
- Instant on the backend
- Patterns
- Auth
- Magic codes
- Guest Auth
- Google OAuth
- Sign In with Apple
- GitHub OAuth
- LinkedIn OAuth
- Clerk
- Firebase Auth
- Permissions
- Rate Limits
- Managing users
- Presence, Cursors, and Activity
- Instant CLI
- Devtool
- Platform API
- Explorer Component
- Custom emails
- App teams
- Storage
- Streams
- Stripe Payments
- Admin HTTP API
- (Experimental) Next.js SSR
- Migrating from Supabase