@functionalcms/svelte-components 2.19.3 → 2.19.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ const createUserSession = async (provider, event) => {
29
29
  event.locals.accessToken = token.access_token;
30
30
  const sessionId = createSession({ session, token }, token.expires_in);
31
31
  headers.append('Location', provider.redirectPath);
32
- headers.append('Set-Cookie', `${authSessionCookieName}=${sessionId}; HttpOnly; Secure; SameSite=strict; Max-Age=${token.expires_in}; Path=/`);
32
+ headers.append('Set-Cookie', `${authSessionCookieName}=${sessionId}; HttpOnly; Secure; SameSite=Lax; Max-Age=${token.expires_in}; Path=/`);
33
33
  }
34
34
  else {
35
35
  headers.append('Location', '/');
@@ -3,7 +3,7 @@ const authStateCookieName = 'auth_state';
3
3
  const stateIdGenerator = () => crypto.randomUUID();
4
4
  const getKeycloakIdentity = async (issuer, client_id, scope, redirectUrl) => {
5
5
  const state = stateIdGenerator();
6
- const cookieHeader = `${authStateCookieName}=${state}; HttpOnly; Secure; SameSite=strict; Max-Age=3600; Path=/`;
6
+ const cookieHeader = `${authStateCookieName}=${state}; HttpOnly; Secure; SameSite=Lax; Max-Age=3600; Path=/`;
7
7
  const code_challenge = await o.calculatePKCECodeChallenge(state);
8
8
  const authorizationUrlSearchParams = new URLSearchParams({
9
9
  client_id: client_id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "2.19.3",
3
+ "version": "2.19.4",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": [