@flowselections/core 1.0.19 → 1.0.20

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.
@@ -1 +1 @@
1
- {"version":3,"file":"HandoverPage.d.ts","sourceRoot":"","sources":["../../../src/core/components/layout/HandoverPage.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,iBAAiB;IAChC,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,wBAAgB,YAAY,CAAC,EAAE,UAAgB,EAAE,SAAoB,EAAE,EAAE,iBAAiB,2CA6FzF"}
1
+ {"version":3,"file":"HandoverPage.d.ts","sourceRoot":"","sources":["../../../src/core/components/layout/HandoverPage.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,iBAAiB;IAChC,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,wBAAgB,YAAY,CAAC,EAAE,UAAgB,EAAE,SAAoB,EAAE,EAAE,iBAAiB,2CAgGzF"}
@@ -37,10 +37,13 @@ export function HandoverPage({ redirectTo = "/", loginPath = "/login" }) {
37
37
  window.history.replaceState(null, "", cleanUrl);
38
38
  try {
39
39
  // Eerst een eventuele bestaande sessie beëindigen, anders belandt
40
- // iemand in de omgeving van de vorige gebruiker.
40
+ // iemand in de omgeving van de vorige gebruiker. Scope 'local':
41
+ // alleen de lokale opslag wissen, geen server-side sessies intrekken.
42
+ // De standaardscope ('global') zou óók de net aangemaakte
43
+ // handover-sessie server-side ongeldig maken (session_not_found).
41
44
  const { data } = await supabase.auth.getSession();
42
45
  if (data.session)
43
- await supabase.auth.signOut();
46
+ await supabase.auth.signOut({ scope: "local" });
44
47
  const result = await exchangeHandover({ data: { code } });
45
48
  const { error } = await supabase.auth.setSession({
46
49
  access_token: result.accessToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowselections/core",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",