Backend & SDK
Authentication (m77.auth)
Sign up, sign in and sessions for your app's users.
Your app's users are separate from your maker77 account. Each app has its own user list (see the Data tab → App users).
await m77.auth.signUp({ email, password, name }); // signs in too
await m77.auth.signIn({ email, password });
await m77.auth.signOut();
m77.auth.user; // { id, email, name, createdAt } or null
const unsubscribe = m77.auth.onChange((user) => {
render(user ? 'app' : 'login');
});Sessions are stored on the device and last 90 days. Passwords are hashed with bcrypt and never visible to you.
Profile
await m77.auth.updateProfile({ name: 'Ada' });Protecting data
Combine auth with mine: true queries to give every user private data. Records created by a signed-in user can only be modified by them.