mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-13 00:16:39 +00:00
add login portal and traefik middleware auth for testing redirect login
This commit is contained in:
7
src/hooks/useUserContext.ts
Normal file
7
src/hooks/useUserContext.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { UserContext } from "@app/contexts/userContext";
|
||||
import { useContext } from "react";
|
||||
|
||||
export function useUserContext() {
|
||||
const user = useContext(UserContext);
|
||||
return user;
|
||||
}
|
||||
Reference in New Issue
Block a user