Implemented JWT generation as authentication token (TP #919)