PHPackages                             socialiteproviders/tiktokshop - 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. socialiteproviders/tiktokshop

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

socialiteproviders/tiktokshop
=============================

TikTok Shop OAuth2 Provider for Laravel Socialite

5.0.0(10mo ago)01.7k↓27.3%MITPHPPHP ^8.0

Since Jun 29Pushed 10mo agoCompare

[ Source](https://github.com/SocialiteProviders/TikTokShop)[ Packagist](https://packagist.org/packages/socialiteproviders/tiktokshop)[ RSS](/packages/socialiteproviders-tiktokshop/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

TikTok Shop
===========

[](#tiktok-shop)

```
composer require socialiteproviders/manager
```

Installation &amp; Basic Usage
------------------------------

[](#installation--basic-usage)

Please see the [Base Installation Guide](https://socialiteproviders.com/usage/), then follow the provider specific instructions below.

Configuration
-------------

[](#configuration)

First, add your TikTok Shop app credentials to `config/services.php`:

```
'tiktokshop' => [
    'client_id'      => env('TIKTOKSHOP_APP_KEY'),       // Your Partner Center App Key
    'client_secret'  => env('TIKTOKSHOP_APP_SECRET'),    // Your Partner Center App Secret
    'redirect'       => env('TIKTOKSHOP_REDIRECT_URI'),  // Your callback URI
],
```

Make sure you have these in your `.env`:

```
TIKTOKSHOP_APP_KEY=your_partner_center_app_key
TIKTOKSHOP_APP_SECRET=your_partner_center_app_secret
TIKTOKSHOP_REDIRECT_URI=https://yourapp.com/auth/tiktokshop/callback
```

### Add provider event listener

[](#add-provider-event-listener)

#### Laravel 11+

[](#laravel-11)

In Laravel 11, register the listener directly in your `AppServiceProvider@boot`:

```
use SocialiteProviders\Manager\SocialiteWasCalled;
use App\Providers\Socialite\TikTokShop\TikTokShopExtendSocialite;
use Illuminate\Support\Facades\Event;

public function boot()
{
    Event::listen(function (SocialiteProviders\Manager\SocialiteWasCalled $event) {
        $event->extendSocialite('tiktokshop', \App\Providers\Socialite\TikTokShop\Provider::class);
    });
}
```

Laravel 10 or belowConfigure the package’s listener in `app/Providers/EventServiceProvider.php`:

```
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        \App\Providers\Socialite\TikTokShop\TikTokShopExtendSocialite::class.'@handle',
    ],
];
```

Usage
-----

[](#usage)

You can now redirect to TikTok Shop for authorization:

```
use Laravel\Socialite\Facades\Socialite;

return Socialite::driver('tiktokshop')->redirect();
```

And handle the callback:

```
$shopUser = Socialite::driver('tiktokshop')->user();

// Access mapped fields:
$shopUser->getId();
$shopUser->getName();
$shopUser->token;
$shopUser->refreshToken;
$shopUser->expiresIn;
```

### Returned User fields

[](#returned-user-fields)

- `id` – the TikTok Shop `open_id`
- `nickname` / `name` – the `seller_name`
- `token` – the `access_token`
- `refreshToken` – the `refresh_token`
- `expiresIn` – seconds until token expiry

References
----------

[](#references)

- [TikTok Shop Partner Center Authorization Overview (202407)](https://partner.tiktokshop.com/docv2/page/678e3a3292b0f40314a92d75)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance53

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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

Unknown

Total

1

Last Release

324d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65eb3a7ba2a2c13b3a9de48b836caf759ad4052f9a839e30464c80d177d5b3d2?d=identicon)[atymic](/maintainers/atymic)

---

Top Contributors

[![gabrielrbarbosa](https://avatars.githubusercontent.com/u/12158575?v=4)](https://github.com/gabrielrbarbosa "gabrielrbarbosa (2 commits)")

---

Tags

laraveloauthoauth1oauth2social-mediasocialitesocialite-providerslaravelprovideroauthsocialitetiktokshop

### Embed Badge

![Health badge](/badges/socialiteproviders-tiktokshop/health.svg)

```
[![Health](https://phpackages.com/badges/socialiteproviders-tiktokshop/health.svg)](https://phpackages.com/packages/socialiteproviders-tiktokshop)
```

###  Alternatives

[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

326.1M13](/packages/socialiteproviders-microsoft)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

421.9M5](/packages/socialiteproviders-instagram)[kovah/laravel-socialite-oidc

OpenID Connect OAuth2 Provider for Laravel Socialite

2073.7k](/packages/kovah-laravel-socialite-oidc)[socialiteproviders/kakao

Kakao OAuth2 Provider for Laravel Socialite

10484.7k4](/packages/socialiteproviders-kakao)

PHPackages © 2026

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