@logickernel/bridge 0.11.1 → 0.11.2
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/next/components.cjs
CHANGED
|
@@ -13,7 +13,6 @@ var navigation = require('next/navigation');
|
|
|
13
13
|
var Link = require('next/link');
|
|
14
14
|
var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
|
|
15
15
|
var react = require('next-auth/react');
|
|
16
|
-
require('jose');
|
|
17
16
|
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
18
17
|
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
19
18
|
|
|
@@ -901,16 +900,6 @@ function NavMain({ items }) {
|
|
|
901
900
|
] }, groupIndex);
|
|
902
901
|
}) });
|
|
903
902
|
}
|
|
904
|
-
function getAuthUrl() {
|
|
905
|
-
return process.env.AUTH_URL || process.env.BASE_URL || "http://localhost:3000";
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
// src/routes.ts
|
|
909
|
-
function buildSignInUrl(callbackUrl) {
|
|
910
|
-
const authUrl = getAuthUrl();
|
|
911
|
-
const url = new URL("/core/auth/signin", authUrl);
|
|
912
|
-
return url;
|
|
913
|
-
}
|
|
914
903
|
function Avatar({
|
|
915
904
|
className,
|
|
916
905
|
...props
|
|
@@ -1074,8 +1063,7 @@ function NavUser({ user }) {
|
|
|
1074
1063
|
const displayName = user.name || user.email;
|
|
1075
1064
|
const handleSignOut = async () => {
|
|
1076
1065
|
await react.signOut({ redirect: false });
|
|
1077
|
-
|
|
1078
|
-
window.location.href = signInUrl.toString();
|
|
1066
|
+
window.location.href = "/core/auth/signin";
|
|
1079
1067
|
};
|
|
1080
1068
|
return /* @__PURE__ */ jsxRuntime.jsx(SidebarMenu, { children: /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
1081
1069
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|