Skip to content
This repository was archived by the owner on Oct 8, 2019. It is now read-only.

v0.2.0

Compare
Choose a tag to compare
@pascalboucher pascalboucher released this 12 Jun 21:44
· 2 commits to master since this release
134e3f6

In this version, I added the ability to access the jwt directly. It can be useful when working with pusher client SDKs since they often ask to provide a token provider

Here's a quick example on how you can get a token directly

Route::get('chatkit/api/get-token', function () {
    $token = Chatkit::getToken($userId);

    // or for sudo tokens
    $token = Chatkit::getSudoToken($userId);

    dd($token);
});