private function parseToken($tokenValue)
    {
        $tokenPayload = json_decode($tokenValue);
        if (is_object($tokenPayload)) {
            $this->accessToken = $tokenPayload;
            if (isset($tokenPayload->id_token)) {
                $idToken = $tokenPayload->id_token;
                $idTokenPayload = base64_decode(
                    explode('.', $idToken)[1]
                );
                $this->accessToken->id_token_info = json_decode($idTokenPayload, true);
            }
        }
    }
private function parseToken($tokenValue)
    {
        $tokenPayload = json_decode($tokenValue);
        if (is_object($tokenPayload)) {
            $this->accessToken = $tokenPayload;
            if (isset($tokenPayload->id_token)) {
                $idToken = $tokenPayload->id_token;
                $idTokenPayload = base64_decode(
                    explode('.', $idToken)[1]
                );
                $this->accessToken->id_token_info = json_decode($idTokenPayload, true);
            }
        }
    }
private function parseToken ( $ tokenValue ) { $ tokenPayload = json_decode ( $ tokenValue ) ; if ( is_object ( $ tokenPayload ) ) { $ this -> accessToken = $ tokenPayload ; if ( isset ( $ tokenPayload -> id_token ) ) { $ idToken = $ tokenPayload -> id_token ; $ idTokenPayload = base64_decode ( explode ( '.' , $ idToken ) [ 1 ] ) ; $ this -> accessToken -> id_token_info = json_decode ( $ idTokenPayload , true ) ; } } }
Parse the id token that represents a JWT token that contains information about the user
@param string $tokenValue
Parse the id token that represents a JWT token that contains information about the user