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

docs: update oauth.md #11698

Merged
merged 11 commits into from
Nov 17, 2024
3 changes: 2 additions & 1 deletion docs/docs/how-to/oauth.md
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,8 @@ const secureCookie = (user) => {
data,
process.env.SESSION_SECRET
).toString()

const cookieName = 'session_8911' //if you're using dbAuth v7.6.2, you have to change the cookie name. You can comment out the line below and make the next line as comment. 8911 is the api port. You can change it accordingly.
ejsinfuego marked this conversation as resolved.
Show resolved Hide resolved
//return [`${cookieName}=${encrypted}`, ...cookieAttrs].join('; ')
return [`session=${encrypted}`, ...cookieAttrs].join('; ')
}
// highlight-end
Expand Down