All skills

11 of 113 — copy any prompt into Lovable, or read the guide.

Active:Category: auth
Auth
prompt

Enable email + password auth

Add Lovable Cloud auth with sign-up, sign-in, and a protected route.

advanced 1h 30m Deep dive
authemail
Auth
guide

Handle session expiry without data loss

Refresh tokens transparently, and when refresh fails, park the user's unsaved work instead of dumping it.

advanced 1h 30m
authsessionuxcloud
Auth
prompt

Invite users by email

Admin sends an invite that lets the recipient set a password.

advanced 1h 30m Deep dive
authinviteadmin
Auth
prompt

Password reset flow

Forgot-password → email → new-password page.

advanced 1h 30m Deep dive
authpasswordemail
Auth
prompt

Passwordless magic link

Send a one-click sign-in link via email.

advanced 1h 30m Deep dive
authmagic-linkemail
Auth
guide

Protected route pattern

Use the built-in _authenticated/ layout — never gate in a loader on a public route.

advanced 1h 30m Deep dive
authroutingguard
Auth
prompt

Server-side role check

Verify a caller is admin inside a server function.

advanced 1h 30m Deep dive
authrolesserver
Auth
prompt

Sign in with Apple

Add managed Apple OAuth.

advanced 1h 30m Deep dive
authoauthapple
Auth
prompt

Sign in with Google

Add managed Google OAuth in one step.

advanced 1h 30m Deep dive
authoauthgoogle
Auth
prompt

Sign out cleanly

Sign out and clear all cached user data.

advanced 1h 30m Deep dive
authsignout
Auth
prompt

useSession() hook

One hook that returns the current user + loading state everywhere.

advanced 1h 30m Deep dive
authhooks