Skip to content

Commit

Permalink
Add cookieName to ReadMe guide example files (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
AddisonDunn authored May 9, 2021
1 parent 133dd1b commit 8280c18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ async function handler(req, res) {

export default withIronSession(handler, {
password: "complex_password_at_least_32_characters_long",
cookieName: "myapp_cookiename",
// if your localhost is served on http:// then disable the secure flag
cookieOptions: {
secure: process.env.NODE_ENV === "production",
Expand All @@ -100,6 +101,7 @@ function handler(req, res, session) {

export default withIronSession(handler, {
password: "complex_password_at_least_32_characters_long",
cookieName: "myapp_cookiename",
// if your localhost is served on http:// then disable the secure flag
cookieOptions: {
secure: process.env.NODE_ENV === "production",
Expand All @@ -119,6 +121,7 @@ function handler(req, res, session) {

export default withIronSession(handler, {
password: "complex_password_at_least_32_characters_long",
cookieName: "myapp_cookiename",
// if your localhost is served on http:// then disable the secure flag
cookieOptions: {
secure: process.env.NODE_ENV === "production",
Expand Down

1 comment on commit 8280c18

@vercel
Copy link

@vercel vercel bot commented on 8280c18 May 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.