Skip to content

Commit

Permalink
Merge pull request #64 from RobDWaller/4.0.1
Browse files Browse the repository at this point in the history
4.0.1
  • Loading branch information
RobDWaller authored Mar 11, 2021
2 parents a8038ff + 78ff93d commit eba7970
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Run Tests
run: composer run-script pipeline
env:
STRYKER_DASHBOARD_API_KEY: lJAzrHHepD211fklc+gybHUpa+HaDOmUoENRsQZkjSF0iC2qQu3gQut4vphI/pDHqrEFat8sQacuy5brOaenbfboGhYEBwhJe4pYarSWUhZrwtroyJKGeM7HWbeB2JsjtHjsCdyQMP3fWv53KG84EcoZcEte/5HyabED+ksKg4VlSkhzPsxcnrStNooihL5zKxp+a1/HcrUVWY1TnbwREHlhK1NiaPBpH6aR90QNBD0M++JNEiQ4B/9kvYQJv1MxjIsC3RD8gJXdCIxDw5d9Qn+zLJ4oL9yGW86wP9x0WMEZaJ26yj5Qx9F2MBJ8fuptHqAbeaJGpvH8dTKoSwN7lZ9MO5ylN5yh7O5PL10dLHqXBUDRaxbd1Y0vzMoe3YHDck8+M7PvUXYveiVQGnT81/QOsbpsby7Wq05zWtYTTDMdhEf1Oafpu0GRynsCQ1NJ2uVvAegG+DQdvbAwmHooGNADMXwIKM3m+JQF2JQaFmplffIjWCJrAjdW7rlxaS3S/pQPYwoiBnD9l/qzu/bq+KNQpyrxplmaYS5N/O53/kfDt7Sn9OvyV+M/sZ8PZxoRKcoDr9OZltZ+Yo5O269xJ+Qif0q8pDSz96jknzEaUyNNQwKmaHfxU2j4V/lJT1R8e5ExeXM55kSIO5Y8g4DEqyi8A1SOv42cqvQUG3uUJzU=
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

- name: Code Coverage
run: bash <(curl -s https://codecov.io/bash)
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Really Simple JSON Web Tokens
[![Actions Status](https://github.com/robdwaller/reallysimplejwt/workflows/ci/badge.svg)](https://github.com/robdwaller/reallysimplejwt/actions) [![codecov](https://codecov.io/gh/RobDWaller/ReallySimpleJWT/branch/master/graph/badge.svg)](https://codecov.io/gh/RobDWaller/ReallySimpleJWT) [![Infection MSI](https://badge.stryker-mutator.io/github.com/RobDWaller/ReallySimpleJWT/master)](https://infection.github.io) [![StyleCI](https://styleci.io/repos/82379868/shield?branch=master)](https://styleci.io/repos/82379868) [![Latest Stable Version](https://poser.pugx.org/rbdwllr/reallysimplejwt/v/stable)](https://packagist.org/packages/rbdwllr/reallysimplejwt) ![PHP Version Support](https://img.shields.io/travis/php-v/RobDWaller/ReallySimpleJWT/master) [![Total Downloads](https://poser.pugx.org/rbdwllr/reallysimplejwt/downloads)](https://packagist.org/packages/rbdwllr/reallysimplejwt)
[![Actions Status](https://github.com/robdwaller/reallysimplejwt/workflows/ci/badge.svg)](https://github.com/robdwaller/reallysimplejwt/actions) [![codecov](https://codecov.io/gh/RobDWaller/ReallySimpleJWT/branch/master/graph/badge.svg)](https://codecov.io/gh/RobDWaller/ReallySimpleJWT) [![Infection MSI](https://badge.stryker-mutator.io/github.com/RobDWaller/ReallySimpleJWT/master)](https://infection.github.io) [![StyleCI](https://styleci.io/repos/82379868/shield?branch=master)](https://styleci.io/repos/82379868) [![Latest Stable Version](https://poser.pugx.org/rbdwllr/reallysimplejwt/v/stable)](https://packagist.org/packages/rbdwllr/reallysimplejwt) ![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/rbdwllr/reallysimplejwt) [![Total Downloads](https://poser.pugx.org/rbdwllr/reallysimplejwt/downloads)](https://packagist.org/packages/rbdwllr/reallysimplejwt)

A simple PHP library for creating JSON Web Tokens that uses HMAC SHA256 to sign signatures. For basic usage the library exposes a static interface to allow developers to create a token that stores a user identifier and expiration time.

Expand Down Expand Up @@ -154,6 +154,11 @@ $result = Token::validate($token, $secret);
There are also methods available to validate the token's expiration claim and not before claim. Both will return true on success and false on failure.

```php
use ReallySimpleJWT\Token;

$token = 'aaa.bbb.ccc';
$secret = 'sec!ReT423*&';

Token::validateExpiration($token, $secret);

Token::validateNotBefore($token, $secret);
Expand Down

0 comments on commit eba7970

Please sign in to comment.