• this function is used to get the payload of a jwt token

    Parameters

    • token: string

    Returns {
        port: number;
        resource: string;
        [key: string]: unknown;
    }

    object containing port, resource and other attributes encoded into the token

    • [key: string]: unknown
    • port: number
    • resource: string