backend/helpers/SessionManager.js
/**
     * Generates a token for a user id, this function does not care if the id is of a valid user.
     *
     * @param id
     */
Generates a token for a user id, this function does not care if the id is of a valid user.
@param id
Generates a token for a user id this function does not care if the id is of a valid user . @param id
generateToken(id) {
        let payload = {
            id: id
        };
        let token = JWT.sign(payload, process.env.JWT_SECRET, { expiresIn: process.env.JWT_DURATION });
        return token;
    }
generateToken ( id ) { let payload = { id : id } ; let token = JWT . sign ( payload , process . env . JWT_SECRET , { expiresIn : process . env . JWT_DURATION } ) ; return token ; }
Generates a token for a user id, this function does not care if the id is of a valid user.
Generates a token for a user id this function does not care if the id is of a valid user .