mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 16:46:29 +00:00
Move auth config and build admin menus
Extract NextAuth configuration into a shared library, load admin sidebar items from role permissions, and update related RBAC types and UI.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { signOut, useSession } from "next-auth/react";
|
||||
import axios from "../axios";
|
||||
import { EXP_SESSION } from "@/pages/api/auth/[...nextauth]";
|
||||
import { EXP_SESSION } from "../auth";
|
||||
|
||||
export const useRefreshToken = () => {
|
||||
const { data: session, update } = useSession();
|
||||
|
||||
Reference in New Issue
Block a user