Skip to content

Commit

Permalink
push cookie in example (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
asafshen authored Dec 20, 2022
1 parent 7ffaa29 commit 1f2e5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/es6/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const returnCookies = <T extends ResponseData>(res: Response, out: SdkResponse<T
const { cookies = [], sessionJwt = '', ...rest } = out?.data! || {};
const setCookies = [...cookies];
if (sessionJwt) {
generateCookie(DescopeClient.SessionTokenCookieName, sessionJwt, rest);
setCookies.push(generateCookie(DescopeClient.SessionTokenCookieName, sessionJwt, rest));
}
res.set('Set-Cookie', setCookies);
res.setHeader('Content-Type', 'application/json');
Expand Down

0 comments on commit 1f2e5ae

Please sign in to comment.