choccybiccy/twitch-tokens

A library to verify Twitch JWT tokens.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/choccybiccy/twitch-tokens

1.0.0 2019-08-23 10:27 UTC

This package is auto-updated.

Last update: 2025-09-28 06:11:22 UTC


README

A library to verify Twitch JWT tokens.

Requirements

  • PHP 7.2+
  • ext-json

Installation

composer require choccybiccy/twitch-tokens

Usage

use Twitch\Auth\Token\Verifier;

$verifier = new Verifier;
if ($token = $verifier->verifyToken('token-string')) {
    $id = $token->get('sub');
    var_dump($token->toArray());
}

Contributing

Make your changes, and ensure that appropriate tests have been created and that the test suite passes.

./vendor/bin/phpspec

Thanks

Special mention for help and guidance provided by: