Skip to content

[Feature] OAuth / Laravel Socialite support with Sanctum #374

Open
@mtzrmzia

Description

@mtzrmzia

Is your feature request related to a problem? Please describe.

I’d like to use social login (Google, Facebook, etc.) via Laravel Socialite while still keeping session management with Sanctum and nuxt-auth-sanctum.
From what I can see in the documentation, the package currently only supports login using credentials (email/password), and there’s no mention of how to integrate Socialite or an OAuth2 flow. This makes it difficult to offer social login options while using this package.

Describe the solution you'd like

An approach or guide for integrating OAuth2 providers using Laravel Socialite along with Sanctum, so users can log in via social platforms and still benefit from cookie-based session handling in Nuxt.

Describe alternatives you've considered

  • Manually handling Socialite redirects and then issuing Sanctum sessions with nuxt-auth-sanctum after login.
  • Falling back to token-based authentication for social logins (but that defeats the purpose of using Sanctum with cookies).

Additional context

This would be especially useful for full-stack Nuxt apps that want to offer multiple login methods (email/password + social login) while using Sanctum’s cookie-based auth for simplicity and security.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions