Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $jwt = JWT::encode($token, $key);
- $decoded = JWT::decode($jwt, $key, array('HS256'));
- <?php //Este archivo lo que hara será pintar la tabla de la tarea por factura
- require_once('../jwt/BeforeValidException.php');
- require_once('../jwt/ExpiredException.php');
- require_once('../jwt/JWT.php');
- require_once('../jwt/SignatureInvalidException.php');
- $key = "example_key";
- $token = array(
- "iss" => "http://example.org",
- "aud" => "http://example.com",
- "iat" => 1356999524,
- "nbf" => 1357000000
- );
- $jwt = JWT::encode($token, $key);
- $decoded = JWT::decode($jwt, $key, array('HS256'));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement