Preparing your workspace
Supabase Auth provides authentication features for identifying users and managing login sessions.
Supabase Auth supports common authentication methods such as email and password and can also support social providers depending on project configuration. The authentication system manages users and sessions, while applications can use the authenticated identity to control access. Authentication answers who the user is; database authorization determines what that user can access. It is important to understand the difference between Supabase Auth users and application-specific profile data stored in your own tables.
A study platform can allow students to register, sign in, remain authenticated across requests, and sign out securely.
const { data, error } = await supabase.auth.signUp({
email: 'student@example.com',
password: 'strong-password'
});
if (error) {
throw error;
}
console.log(data.user);Supabase creates the authentication user according to the project's configured authentication settings.