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.updateConfig is not a function #744

Closed
tobyab opened this issue May 22, 2024 · 1 comment
Closed

TypeError: session.updateConfig is not a function #744

tobyab opened this issue May 22, 2024 · 1 comment

Comments

@tobyab
Copy link

tobyab commented May 22, 2024

I cannot for the life of me figure out why this isn't working! I'd love some help with this.

Function that's causing the problem:

session.updateConfig({
      cookieName: "google-token",
      password: process.env.SESSION_SECRET,
});

Produces the error "TypeError: session.updateConfig is not a function"
export const googleSessionOptions: SessionOptions = {
  cookieName: "google-token",
  password: process.env.SESSION_SECRET,
  cookieOptions: {
    httpOnly: true,
    path: "/",
    secure: process.env.NODE_ENV === "production",
    sameSite: "strict",
  },
};

Running version: 8.0.1

I'll keep working on this and keep you posted if I get a solution! Would love some extra documentation on this though :)

@vvo
Copy link
Owner

vvo commented Jun 14, 2024

Fixed in 8.0.2

@vvo vvo closed this as completed Jun 14, 2024
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

No branches or pull requests

2 participants