how to decode jwt token in php

Solutions on MaxInterview for how to decode jwt token in php by the best coders in the world

showing results for - "how to decode jwt token in php"
Tessa
22 Nov 2020
1you can use this one line to decode the jwt token
2  
3<?php
4$token = "your encrypted token goes here";
5print_r(json_decode(base64_decode(str_replace('_', '/', str_replace('-','+',explode('.', $token)[1])))));