Skip to content

Conversation

@RichPC
Copy link

@RichPC RichPC commented Oct 24, 2025

Problem

  • SPA auth endpoints were registered under API routes without the 'web' middleware. Session middleware was not applied, so login didn't persist authentication.

Fix

  • Wrap SPA auth endpoints (login, register, social callbacks, password, verification) in Route::middleware('web')->group(...).

Verification

  • Reproduced login flow locally; session and auth persisted and /api/v1/user returns authenticated user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant