Simple session-based auth helper

#19 · open · 0 comments

View on GitHub ↗

kingRayhan

## Description A lightweight auth helper for session-based login/logout without a full auth system. ## Proposed API ```php // Login auth()->login(\$user); // Check if (auth()->check()) { ... } // Get current user \$user = auth()->user(); // Logout auth()->logout(); ``` ## Priority Low

Comments