Created
November 21, 2024 11:15
-
-
Save tva77/c1e65ffc145f8fafa9024b11cc66f83a to your computer and use it in GitHub Desktop.
how to decode jwt token in php in 1 line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| print_r(json_decode(base64_decode(str_replace('_', '/', str_replace('-','+',explode('.', $token)[1]))))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment