SakshamHaryana-SE/enketo

Encrypting query pramaters

Shruti3004 opened this issue · 0 comments

Description

Encrypting query pramaters before setting it to the meta on each rendering of the form.

https://github.com/Samagra-Development/enketo/blob/main/enketo-express/app/controllers/survey-controller.js#L189

    options.backendToken = req?.query?.token;

    res.cookie("backendToken", req?.query?.token, cookieOptions);
    res.cookie("enketoFormId", req?.query?.id, cookieOptions);

Using an encrypting library here for query params received