touskar

Results comments of touskar

You should not use process.cwd() because the result change each time we call `process.chdir()` ``` console.log(__dirname, process.cwd()); // /Users/md/Documents/projets /Users/md/Documents/projets process.chdir("/"); console.log(__dirname, process.cwd()); // /Users/md/Documents/projets / ```

Okey so I can't pass general javascript expression to edge template. Thanks

First, no need to await while putting on session, session values are persisted in bulk when the request ends. Are you using two different domain?

What session drivers are you using? Can you manually commit session like that to see if values are persisted in bulk: ``` async store ({ auth, request, params, response, session...

Normally the session should be persisted automatically. I wonder if the "Foos QuxController.store" controller is not running before the `SessionMiddleware` finishes persisting data. Can you confirm that at least one...

If it's an ajax request, make sure you send the token back to server like that: ``` $.ajaxSetup({ headers: { 'X-XSRF-TOKEN': '{{ csrfToken }}' } }); ``` Or while doing...

Hi, just do this: ```javascript async auth({request, response, auth}) { const { email, password } = request.all(); let auth0 = await auth.attempt(email, password); auth0.user = await auth.getUser(); return auth0; }...