Skip to content
Snippets Groups Projects
Verified Commit fc08e172 authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Null isAuth signals no data fetched.

parent 1dfdfb1a
No related branches found
No related tags found
2 merge requests!56Refined auth flow and new website pages.,!51Fix/authorization
...@@ -3,9 +3,9 @@ import { createContext } from 'react'; ...@@ -3,9 +3,9 @@ import { createContext } from 'react';
export type AuthData = { export type AuthData = {
role: string; role: string;
isAuth: boolean; isAuth: boolean | null;
setRole: (role: string) => void; setRole: (role: string) => void;
setIsAuth: (state: boolean) => void; setIsAuth: (state: boolean | null) => void;
}; };
export const AuthContext = createContext<AuthData>({ export const AuthContext = createContext<AuthData>({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment