Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Express middleware not setCookie #617

dimensi opened this Issue Dec 18, 2017 · 1 comment


None yet
2 participants
Copy link

dimensi commented Dec 18, 2017

Steps to reproduce

(First please check that this issue is not already solved as described

  • Tell us what broke. The more detailed the better.

I look

if (result.success) {
Object.assign(req, { authenticated: true },;
Object.assign(req.feathers, { authenticated: true },;
if (options.successRedirect && !options.__oauth) {
debug(`Redirecting to ${options.successRedirect}`);
return res.redirect(options.successRedirect);
return next();

but i not see here logic for set cookie.

Expected behavior

Tell us what should happen'/login','local',{ 
    successRedirect: '/',
    failureRedirect: '/bad',

will set cookie

Actual behavior

Tell us what happens instead
nothing happing, only redirect works.

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working):

NodeJS version: 9.3.0

Operating System: Arch

Browser Version: Chrome 63


This comment has been minimized.

Copy link

daffl commented Jan 22, 2018

There is now a recipe showing how to use Feathers authentication with Express middleware (including server side rendering) at

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.