auth-patterns

Installation
SKILL.md

Auth Patterns

Quick Pattern

// Login form
export const login = form(schema, async ({ email, password }) => {
	const event = getRequestEvent();
	await auth.api.signInEmail({
		body: { email, password },
		headers: event.request.headers,
	});
	redirect(303, '/dashboard'); // Outside try/catch
});
Installs
4
GitHub Stars
6
First Seen
Mar 13, 2026
auth-patterns — spences10/devhub-crm