docs(api): more old version stuff
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
||||
import { redirect, useNavigate, useRouter } from "@tanstack/react-router";
|
||||
import { createAuthClient } from "better-auth/client";
|
||||
import { usernameClient } from "better-auth/client/plugins";
|
||||
import { adminClient, usernameClient } from "better-auth/client/plugins";
|
||||
import { useEffect } from "react";
|
||||
import { create } from "zustand";
|
||||
import { api } from "./axiosAPI";
|
||||
@@ -112,7 +112,7 @@ export async function checkUserAccess({
|
||||
// ---- BETTER AUTH CLIENT ----
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: `${window.location.origin}/lst/api/auth`,
|
||||
plugins: [usernameClient()],
|
||||
plugins: [usernameClient(), adminClient()],
|
||||
options: {
|
||||
autoPopup: false,
|
||||
requireAuth: false,
|
||||
|
||||
@@ -3,6 +3,7 @@ import {
|
||||
Sidebar,
|
||||
SidebarContent,
|
||||
SidebarFooter,
|
||||
SidebarMenuButton,
|
||||
SidebarMenuItem,
|
||||
SidebarTrigger,
|
||||
} from "../../../../../components/ui/sidebar";
|
||||
@@ -51,7 +52,9 @@ export function AppSidebar() {
|
||||
</SidebarContent>
|
||||
<SidebarFooter>
|
||||
<SidebarMenuItem>
|
||||
<Link to={"/changelog"}>Changelog</Link>
|
||||
<SidebarMenuButton asChild>
|
||||
<Link to={"/changelog"}>Changelog</Link>
|
||||
</SidebarMenuButton>
|
||||
</SidebarMenuItem>
|
||||
<SidebarTrigger />
|
||||
</SidebarFooter>
|
||||
|
||||
Reference in New Issue
Block a user