mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-12 23:15:00 +02:00
add login portal and traefik middleware auth for testing redirect login
This commit is contained in:
parent
0838679120
commit
87c4fc798f
14 changed files with 285 additions and 130 deletions
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue