Download the PHP package level51/silverstripe-jwt-utils without Composer
On this page you can find all versions of the php package level51/silverstripe-jwt-utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download level51/silverstripe-jwt-utils
More information about level51/silverstripe-jwt-utils
Files in level51/silverstripe-jwt-utils
Download level51/silverstripe-jwt-utils
More information about level51/silverstripe-jwt-utils
Files in level51/silverstripe-jwt-utils
Vendor level51
Package silverstripe-jwt-utils
Short Description Utilities for dealing with JWT in SilverStripe
License MIT
Package silverstripe-jwt-utils
Short Description Utilities for dealing with JWT in SilverStripe
License MIT
Please rate this library. Is it a good library?
Informations about the package silverstripe-jwt-utils
JWT Utils for SilverStripe
Lean set of helper classes to deal with JWT in SilverStripe setups.
Install
Module Version | PHP Version |
---|---|
1.x | >=8 |
0.x | <8 |
Example
With correct config and credentials there will be a payload like the following:
Config
Make sure to include an environment variable JWT_SECRET
and pick a random value.
API
static inst()
: Get singleton instancebyBasicAuth($request, $includeMemberData: bool = true): array
: Creates a new token from Basic Auth member datarenew($token: string): string
: Checks if the given token is valid and needs to be renewedcheck($token: string): bool
: Checks if token is valid and non-expired
Maintainer
- JZubero [email protected]
All versions of silverstripe-jwt-utils with dependencies
PHP Build Version
Package Version
The package level51/silverstripe-jwt-utils contains the following files
Loading the files please wait ....