To give your app accounts, turn on Swarmz Cloud and ask the AI for a sign-in page. Email and password sign-in works straight away, and you choose any other methods, like Google or Apple, under Sign-in settings. This page is about the people who use your app. For your own Swarmz account, see I can't sign in.
Add sign-in#
Step 1: Turn on Cloud
Sign-in needs Swarmz Cloud. If it is not on yet, see What is Swarmz Cloud?.
Step 2: Ask for a sign-in page
Tell the AI what you want. For example: "Add a sign-up and login page with email and Google, and show the user's name in the header once they are signed in."
Step 3: Choose your sign-in methods
Open Tools, then Cloud, then Users, and click Sign-in settings. Each method is listed as Enabled or Disabled. Click one to set it up.
Step 4: Set your Site URL
After you publish, open Sign-in settings and set the Site URL to your live address, such as your custom domain. This is where people land after signing in with Google or a magic link. Use preview URL fills in your preview address while you test.
Step 5: Test it
Open your preview, create an account and sign in. The new user appears under Users.
Add email and Google sign-in. Protect the dashboard page so only signed-in users can see it, and add a log out button.
Sign-in methods#
| Method | Notes |
|---|---|
| Email and password. On by default. | |
| Phone | A code sent by text message. |
| Google and Apple | Can be Managed by Swarmz (no developer account needed) or Your own credentials. |
| GitHub, Azure, Discord, Twitter / X | You supply the keys from that service's developer area. |
| SAML SSO | Lets people at a company sign in through their company's identity provider. |
For Google or Apple, open the method and choose Setup: Off, Managed by Swarmz, or Your own credentials. With the managed option, Swarmz handles the configuration and security updates. If you choose your own credentials, paste the Client ID and secret from your developer account. Managed sign-in is being rolled out, so it may not be offered on every project yet.
Sign-up controls#
Under Sign-ups in Sign-in settings:
- Disable sign-up stops new people creating accounts.
- Enable anonymous users lets people use your app without an account.
Click Save at the bottom when you change a setting.
Manage your users#
Under Tools, Cloud, Users you see how many people have an account, how they sign in, sign-ups over the last 30 days, and everyone in a list you can search by name, email or phone. If nobody has signed up yet, Ask Swarmz to add sign-ups hands the job to the AI.
Click a person to see who they are and how they sign in, with each method's logo (Google, Apple, GitHub, email and so on) and the date it was linked. Below that are the details that apply to them, such as when they signed up, last signed in and confirmed their email. Then the actions that make sense for them:
- Send password reset email emails them a link to choose a new password. It only shows for people who sign in with an email and password.
- Resend confirmation email sends the sign-up email again. It only shows until they confirm their address.
- Remove two-step sign-in clears their second step if they lost it.
- Ban user stops them signing in. Unban user lets them back.
- Delete user, at the bottom, removes the account after you confirm.
Raw data shows the full record for developers.
Add user creates an account yourself (Create account, ready to use straight away with the password you set) or sends an invitation (Send invitation), where they choose their own password.
Good to know#
- A Site URL of
localhostwill not work for sign-in redirects. Use your preview or published address. - Banning or deleting a user takes effect for them straight away.
- Keep user data private with access rules. See Your app's database.
Common questions#
Do I need a Google developer account for Google sign-in?
Not if Managed by Swarmz is offered. Otherwise you create credentials in your own Google developer account.
Where are the passwords stored?
Your Cloud backend stores them in a protected form. The Users page never shows them.
A user says they never got a confirmation email.
Open the user and click Resend confirmation email. Ask them to check spam.
Can I stop strangers signing up?
Yes. Turn on Disable sign-up and add users yourself or by invitation.
Was this helpful?
Related articles
What is Swarmz Cloud?
Swarmz Cloud is the backend for your app: a database, user accounts, file storage and server functions, set up and looked after for you.Your app's database
Where your app keeps its information, how tables get created, how to keep them private and where to find backups.I can't sign in
Fix sign-in problems: wrong method, forgotten password, two-step codes, missing emails and browser issues.In TroubleshootingSend email from your app
Give your app an address to send welcome emails, receipts and notifications, test it, and see what was delivered.
Still have a question?
Ask about this article, or talk to a person.