Skip to content

Commit

Permalink
docs: fix setting cookies in response example; should use Set-Cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
filmaj committed Mar 28, 2024
1 parent 3e29641 commit f4f62da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_packages/oauth.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const server = createServer(async (req, res) => {
// call installer.handleInstallPath and write a cookie using beforeRedirection
await installer.handleInstallPath(req, res, {
beforeRedirection: async (req, res) => {
res.setHeader('Cookie', 'mycookie=something');
res.setHeader('Set-Cookie', 'mycookie=something');
return true; // return true to continue with the OAuth flow
}
});
Expand Down

0 comments on commit f4f62da

Please sign in to comment.