Francel AMAMOO

Results 29 comments of Francel AMAMOO
trafficstars

@herudi , how can I pass data from a component to a parent page and then display a notification based on the data returned by the child component?

Hi @herudi , I'm trying to use https://github.com/expressjs/cookie-session with nhttp to set a session and retrieve the value on redirected page without success. How to use it ?

HI @herudi Thanks for your response. OK, il there a function to delete the cookie deleteCookie() ?

Hi @herudi The code below not working for me in my own middleware, (I'm building an api with nHttp with a separate vuejs frontend). rev.response.clearCookie("authToken"); throw new HttpError(401, { message:...

@herudi Below, complete middleware. export const requireAuthenticatedUser = async (rev, next) => { MyLogger.log('requireAuthenticatedUser') if (!rev.authToken) { rev.response.clearCookie("authToken"); throw new HttpError(401, { message: 'Authentification requis.' }) } else { const...

below the log when i log the rev.response after the clearCookie headers: { vary: 'Origin', 'access-control-allow-origin': 'http://localhost:9000', 'access-control-allow-credentials': 'true', 'content-security-policy': "default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src...

@herudi , I finally reused the code below that I also used in the logout route., which allowed the browser to delete the cookie and redirect the user to the...

@chouchouji Utiliser Google Se connecter