skievacd / pb-auth-handler
This package's canonical repository appears to be gone and the package has been frozen as a result.
v1.0.4
2021-06-16 21:59 UTC
Requires
- nesbot/carbon: ^2.49
- skievacd/pb-encryption-handler: ^1.0
- skievacd/pb-responses-handler: ^1.0
This package is auto-updated.
Last update: 2022-03-16 23:45:35 UTC
README
Provee los métodos para desencriptar la información y validar el tiempo de vida del token, además de getters para recuperar el token encriptado y desencriptado
Instalación
composer require skievacd/pb-auth-handler
Uso
Para validar el tiempo de vida de un token encriptado"
use AuthHandler\Auth;
$auth = new Auth();
$auth->validate($encryptedToken, $encryptionKey, $encryptionInitialValue, $tokenLifeTime);
Para recuperar el token encriptado y desencriptado utilice los siguientes métodos"
use AuthHandler\Auth;
$auth = new Auth();
$auth->validate($encryptedToken, $encryptionKey, $encryptionInitialValue, $tokenLifeTime);
$auth->getToken();
$auth->getEncryptedToken();