this is what i've had to avoid warnings . any impr...
# support-questions-legacy
b
this is what i've had to avoid warnings . any improvements suggested ?
Copy code
let session = await supertokens.getSession(req, res, true).catch(er => er);
    if(session.err){ return redirect(); }