This quickstart will get you up and running with auth in about 10 minutes.
1. Add your signup form
Paste your code snippet
- Paste the
<head>of your HTML
- Use the
<signup-form>element inside the
<body>of your HTML View
2. Use your signup form
Give it a try: fill out your signup form and submit it.
Upon successful signup, the form does 2 things:
Redirects the browser to
We'll edit this next.
Adds a secure access token named
access.WORKSPACE_IDto your browser's cookies.
This token is a JWT with the user's information, which you can send to your own backend.
Your form is in test mode, which means it creates a user record in your test environment when the form is submitted.
3. Set your redirect & domain
In your Paths & routing page, update the After-signup path to
Now when you re-submit your signup form, you should be redirected to
4. Add login and others
Congratulations, you've added auth to your site.
To enable live mode, add your website to the list of live domains on the Live domains page.
Whenever a form loads at a live domain, it will automatically be in live mode.