@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.js
CHANGED
|
@@ -13,7 +13,6 @@ import { usePathname, useRouter } from 'next/navigation';
|
|
|
13
13
|
import Link from 'next/link';
|
|
14
14
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
15
15
|
import { signOut } from 'next-auth/react';
|
|
16
|
-
import 'jose';
|
|
17
16
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
18
17
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
19
18
|
|
|
@@ -872,16 +871,6 @@ function NavMain({ items }) {
|
|
|
872
871
|
] }, groupIndex);
|
|
873
872
|
}) });
|
|
874
873
|
}
|
|
875
|
-
function getAuthUrl() {
|
|
876
|
-
return process.env.AUTH_URL || process.env.BASE_URL || "http://localhost:3000";
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
// src/routes.ts
|
|
880
|
-
function buildSignInUrl(callbackUrl) {
|
|
881
|
-
const authUrl = getAuthUrl();
|
|
882
|
-
const url = new URL("/core/auth/signin", authUrl);
|
|
883
|
-
return url;
|
|
884
|
-
}
|
|
885
874
|
function Avatar({
|
|
886
875
|
className,
|
|
887
876
|
...props
|
|
@@ -1045,8 +1034,7 @@ function NavUser({ user }) {
|
|
|
1045
1034
|
const displayName = user.name || user.email;
|
|
1046
1035
|
const handleSignOut = async () => {
|
|
1047
1036
|
await signOut({ redirect: false });
|
|
1048
|
-
|
|
1049
|
-
window.location.href = signInUrl.toString();
|
|
1037
|
+
window.location.href = "/core/auth/signin";
|
|
1050
1038
|
};
|
|
1051
1039
|
return /* @__PURE__ */ jsx(SidebarMenu, { children: /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
1052
1040
|
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|