Skip to content

How to dejwt token in PHP?

you can use this one line to decode the jwt token
  
<?php
$token = "your encrypted token goes here";
print_r(json_decode(base64_decode(str_replace('_', '/', str_replace('-','+',explode('.', $token)[1])))));
See also  How to set google chrome as default browser using webbrowser module in Python?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.