Authentication (Core)

Token-based auth with Laravel Sanctum 4. Always present, cannot be removed.

API Endpoints

MethodEndpointDescription
POST/api/auth/registerCreate account
POST/api/auth/loginSign in
POST/api/auth/logoutSign out
GET/api/auth/userCurrent user
PUT/api/auth/profileUpdate name/email
PUT/api/auth/passwordChange password
POST/api/auth/avatarUpload avatar
DELETE/api/auth/avatarRemove avatar
DELETE/api/auth/accountDelete account
POST/api/auth/forgot-passwordSend reset link
POST/api/auth/reset-passwordReset with token
GET/api/auth/email/verify/{id}/{hash}Verify email
POST/api/auth/email/resendResend verification
GET/api/auth/googleGoogle OAuth redirect
GET/api/auth/google/callbackGoogle OAuth callback

Frontend Pages

What's included

Google sign-in

Via Laravel Socialite. If the email already exists, accounts are linked automatically.

Profile picture

Upload an avatar or display the user's initials as a fallback.

Email verification

New users verify their email via a secure signed URL. Can be resent.

Rate limiting

Auth endpoints are limited to 5 requests per minute to prevent brute force.

Account deletion

Soft deletes. The account is kept in the database before permanent removal.

Two roles: user & admin

Controlled via a PHP backed enum. No magic strings, fully type-safe.

Modules Billing (Stripe)

Documentation

Ready to build your SaaS?

Full source code, all modules, lifetime updates.

Get Stacktura — $249