Search by

net-code / laravel-identity

mrode-net-tech

Reusable, Sanctum-based authentication for Laravel — registration, login, password reset, TOTP two-factor, invitations, and social login — built with hexagonal ports & adapters.

v0.3.0 2026-07-12 16:39 UTC

This package is auto-updated.

Last update: 2026-09-12 17:00:26 UTC


README

Reusable, Sanctum-based authentication for Laravel — users, registration, login and sessions, built with hexagonal ports & adapters. Authorization (roles/permissions) is a separate concern → net-code/laravel-access.

composer require net-code/laravel-identity
php artisan migrate
  • docs/usage.md — install, config, ports, wiring.
  • docs/flows.md — the end-to-end flows.

v1 scope

Register · login · logout / logout-all · /me · password reset · TOTP two-factor (enable/confirm/ disable, recovery codes, login challenge) · invitations (invite / accept / revoke, typed acceptance hook) · social login & account linking (Socialite behind a port, verified-email-only auto-link) · the CurrentUser port. Realm-aware schema (single realm by default).

License

MIT