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

TypeError: "session.transient" is not allowed #156

Closed
fire015 opened this issue Oct 30, 2020 · 1 comment · Fixed by #157
Closed

TypeError: "session.transient" is not allowed #156

fire015 opened this issue Oct 30, 2020 · 1 comment · Fixed by #157

Comments

@fire015
Copy link

fire015 commented Oct 30, 2020

According to the SessionConfigParams you should be able to set the transient property like so:

app.use(
  auth({
    session: {
      transient: true,
    },
  })
);

However this throws TypeError: "session.transient" is not allowed.

The correct code is:

app.use(
  auth({
    session: {
      cookie: {
        transient: true,
      },
    },
  })
);

But this is not how it is defined in the interface.

Using version 2.0.0.

@adamjmcgrath
Copy link
Contributor

Thanks for raising this @fire015

Going to close this as it's a duplicate of #149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants