users, customers, or staff.
The flow
Set up authentication
1
Create a users collection
Add a collection (for example
users) with a login field such as email, plus any profile fields.2
Create a guard
Go to Authentication → Guards → Create guard. Pick the collection and the login field. Bludia adds a
password field and a default role, user. See Guards.3
Grant permissions
Give the
user role access to the collections your app needs. See Roles & permissions.4
Create an end_users API key
In API → API Keys, create a key with auth type
end_users and add your app’s origin. See API keys.5
Build login and sign-up screens
Call the auth endpoints from your app. See Register & login.
Features
Guards
Connect login to a collection, choose the login field, configure tokens.
Register & login
Sign-up and sign-in endpoints, payloads, and errors.
Sessions & tokens
Access tokens, refresh rotation, logout, and logout everywhere.
Email verification
Send a verification code at sign-up and confirm it.
Password reset
Forgot-password and reset flows.
Current user
Get the signed-in user’s profile with
/me.Security built in
End users vs team members. This section is about people who use your app. To give colleagues access to the Bludia dashboard, see Team members.
