new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Concepts · all subjects

users & accounts

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Two-factor authentication and RLS not covered in basic Supabase migration

The basic Supabase to Better Auth migration guide does not cover migrating two-factor authentication (2FA) or Row Level Security (RLS) configurations, though both should be possible with additional steps.

Supabase to Better Auth user migration preserves user data

When migrating users from Supabase Auth to Better Auth, the migration script transfers user fields: id, email, name (from email if not available), role (converted from is_super_admin), emailVerified (from email_confirmed_at), image (from avatar_url), createdAt, updatedAt, and isAnonymous. Social provider identities are migrated as separate account records with providerId and accountId. Email/password credentials are migrated as account records with providerId 'credential' and the encrypted password.

Migrating Supabase Auth identities to Better Auth accounts

Supabase Auth identities are migrated to Better Auth as account records. For email identities, a credential account is created with the encrypted password. For social provider identities, an account is created with the provider name as providerId and the provider's user ID as accountId. The migration checks for existing accounts to avoid duplicates.

Migration from Supabase Auth invalidates active sessions

Migrating from Supabase Auth to Better Auth will invalidate all active sessions. Users will need to log in again after the migration.

Give your agent this brain