Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. $jwt = JWT::encode($token, $key);
  2. $decoded = JWT::decode($jwt, $key, array('HS256'));
  3.  
  4. <?php //Este archivo lo que hara será pintar la tabla de la tarea por factura
  5. require_once('../jwt/BeforeValidException.php');
  6. require_once('../jwt/ExpiredException.php');
  7. require_once('../jwt/JWT.php');
  8. require_once('../jwt/SignatureInvalidException.php');
  9.  
  10. $key = "example_key";
  11. $token = array(
  12. "iss" => "http://example.org",
  13. "aud" => "http://example.com",
  14. "iat" => 1356999524,
  15. "nbf" => 1357000000
  16. );
  17.  
  18. $jwt = JWT::encode($token, $key);
  19. $decoded = JWT::decode($jwt, $key, array('HS256'));
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement