@absolutejs/auth 0.31.0 → 0.32.0

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.
package/dist/index.d.ts CHANGED
@@ -12453,7 +12453,7 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12453
12453
  headers: unknown;
12454
12454
  response: {
12455
12455
  400: "Cookies are missing";
12456
- 401: "No auth provider found" | "No user session id found";
12456
+ 401: "No user session id found";
12457
12457
  200: Response;
12458
12458
  422: {
12459
12459
  type: "validation";
package/dist/index.js CHANGED
@@ -7891,12 +7891,9 @@ var signout = ({
7891
7891
  store: { session },
7892
7892
  cookie: { user_session_id, auth_provider }
7893
7893
  }) => {
7894
- if (auth_provider === undefined || user_session_id === undefined) {
7894
+ if (user_session_id === undefined) {
7895
7895
  return status("Bad Request", "Cookies are missing");
7896
7896
  }
7897
- if (auth_provider.value === undefined) {
7898
- return status("Unauthorized", "No auth provider found");
7899
- }
7900
7897
  if (user_session_id.value === undefined) {
7901
7898
  return status("Unauthorized", "No user session id found");
7902
7899
  }
@@ -7908,7 +7905,7 @@ var signout = ({
7908
7905
  const currentSession = signoutSession[user_session_id.value];
7909
7906
  if (currentSession !== undefined) {
7910
7907
  const signedOut = await runSignOut(onSignOut, {
7911
- authProvider: auth_provider.value,
7908
+ authProvider: auth_provider?.value,
7912
7909
  session: signoutSession,
7913
7910
  userSessionId: user_session_id.value
7914
7911
  });
@@ -7925,7 +7922,7 @@ var signout = ({
7925
7922
  delete session[user_session_id.value];
7926
7923
  }
7927
7924
  user_session_id.remove();
7928
- auth_provider.remove();
7925
+ auth_provider?.remove();
7929
7926
  return new Response(null, { status: 204 });
7930
7927
  }, {
7931
7928
  cookie: t24.Cookie({
@@ -23904,5 +23901,5 @@ export {
23904
23901
  AuthIdentityConflictError
23905
23902
  };
23906
23903
 
23907
- //# debugId=185BEA3393AC9BDA64756E2164756E21
23904
+ //# debugId=334E206D4FA9C2DF64756E2164756E21
23908
23905
  //# sourceMappingURL=index.js.map