PHPackages                             cleaniquecoders/socialite-recall - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. cleaniquecoders/socialite-recall

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

cleaniquecoders/socialite-recall
================================

Handle Socialite Redirect, Callback and Logout Easily

1.1.0(1mo ago)00MITPHPPHP ^8.3CI passing

Since Aug 3Pushed 1mo agoCompare

[ Source](https://github.com/cleaniquecoders/socialite-recall)[ Packagist](https://packagist.org/packages/cleaniquecoders/socialite-recall)[ Docs](https://github.com/cleaniquecoders/socialite-recall)[ GitHub Sponsors]()[ RSS](/packages/cleaniquecoders-socialite-recall/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (26)Versions (3)Used By (0)

Socialite ReCall
================

[](#socialite-recall)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5a67826a925f4fd4258e27c0566e35d6ec7c1190f54b9603aa904d47300b1b81/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c65616e69717565636f646572732f736f6369616c6974652d726563616c6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cleaniquecoders/socialite-recall)[![GitHub Tests Action Status](https://camo.githubusercontent.com/92ba42011a7cd6cac18acdb8bacc7fa4b1b5f2798499d373e272a09344b8f992/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636c65616e69717565636f646572732f736f6369616c6974652d726563616c6c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/cleaniquecoders/socialite-recall/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5b9dc78c992df55e01a23e104aa32a1f0be550d08400e7f0ee259d6d1180661b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636c65616e69717565636f646572732f736f6369616c6974652d726563616c6c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/cleaniquecoders/socialite-recall/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/e4e2f2d169f4a6defa6c1c04cd825fc7b869a5b7913f9f72b3361af1835ee70a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c65616e69717565636f646572732f736f6369616c6974652d726563616c6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cleaniquecoders/socialite-recall)

Handle Socialite Redirect, Callback and Logout Easily

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require cleaniquecoders/socialite-recall
```

Then install the package:

```
php artisan socialite-recall:install
```

Update the providers list and redirect paths as needed:

```
'providers' => ['google', 'github', 'facebook'],
'redirect_after_login' => '/dashboard',
'redirect_after_logout' => '/',
```

Usage
-----

[](#usage)

### Configure Your Socialite Providers

[](#configure-your-socialite-providers)

In your `.env` file, add credentials for the providers you want to support:

```
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GOOGLE_REDIRECT_URI=${APP_URL}/auth/google/callback

GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
GITHUB_REDIRECT_URI=${APP_URL}/auth/github/callback
```

And update `config/services.php` accordingly:

```
'google' => [
    'client_id' => env('GOOGLE_CLIENT_ID'),
    'client_secret' => env('GOOGLE_CLIENT_SECRET'),
    'redirect' => env('GOOGLE_REDIRECT_URI'),
],

'github' => [
    'client_id' => env('GITHUB_CLIENT_ID'),
    'client_secret' => env('GITHUB_CLIENT_SECRET'),
    'redirect' => env('GITHUB_REDIRECT_URI'),
],
```

---

### Authentication Routes

[](#authentication-routes)

Your app automatically gets these routes:

- Redirect to provider:

    ```
    GET /auth/{provider}/redirect

    ```
- Callback from provider:

    ```
    GET /auth/{provider}/callback

    ```
- Logout user:

    ```
    POST /auth/logout

    ```

Replace `{provider}` with any enabled provider (e.g., `google`, `github`, `facebook`).

---

### Example Buttons in Blade

[](#example-buttons-in-blade)

```

    Login with Google

    Login with GitHub

    @csrf
    Logout

```

---

### After Login

[](#after-login)

- The package will:

    - Handle Socialite redirect and callback flow.
    - Create or update a user record (based on provider + provider ID).
    - Automatically log the user in.
- After login, the user will be redirected to the path set in:

```
'redirect_after_login' => '/dashboard',
```

---

⚡ That’s it! You now have **one unified login system** for all Socialite providers without repeating redirect/callback logic.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Nasrul Hazim Bin Mohamad](https://github.com/nasrulhazim)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance91

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~239 days

Total

2

Last Release

43d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b57069d0f4b634f65eccc6e5d5848990e25968d45ec2cf46d626c6a4658f944b?d=identicon)[nasrulhazim.m](/maintainers/nasrulhazim.m)

---

Top Contributors

[![nasrulhazim](https://avatars.githubusercontent.com/u/10341422?v=4)](https://github.com/nasrulhazim "nasrulhazim (17 commits)")

---

Tags

laravelCleanique Coderssocialite-recall

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/cleaniquecoders-socialite-recall/health.svg)

```
[![Health](https://phpackages.com/badges/cleaniquecoders-socialite-recall/health.svg)](https://phpackages.com/packages/cleaniquecoders-socialite-recall)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[dutchcodingcompany/filament-socialite

Social login for Filament through Laravel Socialite

213914.9k9](/packages/dutchcodingcompany-filament-socialite)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[spatie/laravel-login-link

Quickly login to your local environment

4381.2M1](/packages/spatie-laravel-login-link)[ryangjchandler/laravel-cloudflare-turnstile

A simple package to help integrate Cloudflare Turnstile.

438896.6k2](/packages/ryangjchandler-laravel-cloudflare-turnstile)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
