library lexik-jwt-service-provider
This is a provider for silex 2.0 using lexik jwt authentication provider class to create a encoder
anhpha/lexik-jwt-service-provider
This is a provider for silex 2.0 using lexik jwt authentication provider class to create a encoder
- Friday, November 4, 2016
- by phavo
- Repository
- 1 Watchers
- 0 Stars
- 644 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 5 Versions
- 25 % Grown
lexik-jwt-encoder-provider
JWT encoder provider for Silex 2.0 based on LexikJWTAuthenticationBundle, (*1)
Usage
$ttl = 86400;
$exp = time() + $ttl;
$token = $this->container['lexikEncoder']()->encode(['username' => 'test', 'exp' => $exp]);
$response = new JsonResponse();
$response->setData(array(
'token' => $token,
));
//$response = new JsonResponse();
return $response;
dev-master
9999999-dev
This is a provider for silex 2.0 using lexik jwt authentication provider class to create a encoder
Sources
Download
The Requires
by
Anh Pha
1.0
1.0.0.0
This is a provider for silex 2.0 using lexik jwt authentication provider class to create a encoder
Sources
Download
The Requires
by
Anh Pha
0.3
0.3.0.0
This is a provider for silex 2.0 using lexik jwt authentication provider class to create a encoder
Sources
Download
The Requires
by
Anh Pha
0.2
0.2.0.0
This is a provider for silex 2.0 using lexik jwt authentication provider class to create a encoder
Sources
Download
The Requires
by
Anh Pha
0.1
0.1.0.0
This is a provider for silex 2.0 using lexik jwt authentication provider class to create a encoder
Sources
Download
The Requires
by
Anh Pha