application - v0.1.0
Preparing search index...
context/userContext
AuthContextType
Interface AuthContextType
Interface du contexte d'authentification
interface
AuthContextType
{
user
:
User
|
null
;
isAuthenticated
:
boolean
;
isLoading
:
boolean
;
login
:
(
email
:
string
,
password
:
string
,
shouldRedirect
?:
boolean
,
)
=>
Promise
<
void
>
;
logout
:
()
=>
void
;
forceLogout
:
()
=>
void
;
currentRoute
:
string
|
null
;
saveCurrentRoute
:
(
route
:
string
)
=>
void
;
getAndClearSavedRoute
:
()
=>
string
|
null
;
}
Index
Properties
user
is
Authenticated
is
Loading
login
logout
force
Logout
current
Route
save
Current
Route
get
And
Clear
Saved
Route
Properties
user
user
:
User
|
null
is
Authenticated
isAuthenticated
:
boolean
is
Loading
isLoading
:
boolean
login
login
:
(
email
:
string
,
password
:
string
,
shouldRedirect
?:
boolean
,
)
=>
Promise
<
void
>
logout
logout
:
()
=>
void
force
Logout
forceLogout
:
()
=>
void
current
Route
currentRoute
:
string
|
null
save
Current
Route
saveCurrentRoute
:
(
route
:
string
)
=>
void
get
And
Clear
Saved
Route
getAndClearSavedRoute
:
()
=>
string
|
null
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
user
is
Authenticated
is
Loading
login
logout
force
Logout
current
Route
save
Current
Route
get
And
Clear
Saved
Route
application - v0.1.0
Loading...
Interface du contexte d'authentification