Skip to content

Commit

Permalink
fix(auth): add domain to refresh cookie for demo site
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonadams committed Sep 9, 2020
1 parent a4811a7 commit d425d65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/server/auth/src/lib/core/cookies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ const options: SetOption = {
secure: true,
sameSite: 'strict',
path: '/authorize', // set to only the /authorize path so it is sent on both /refresh & /revoke
// ZTP_AFTER_CLONE You may want to delete the domain below so that it defaults to the host
// This is set so the the demo site works and the cookie is sent to both
// https://api.zero-to-production.dev && https://fns.zero-to-production.dev
domain: 'zero-to-production.dev',
};

export function setRefreshTokenCookie(cookies: Cookies, refreshToken?: string) {
Expand Down

0 comments on commit d425d65

Please sign in to comment.