Home > @galvanize-inc/jwtdown-for-react
jwtdown-for-react package#
Variables#
Variable |
Description |
---|---|
Context Hook for authentication. Store token and other data. |
|
React context provider that provides AuthContext to application, which should be a child node of this component. |
|
Context Hook. |
|
Hook that provides token, register, login, logout, fetchWithCookie, and fetchWithToken |
Type Aliases#
Type Alias |
Description |
---|---|
Object containing the state of AuthContext. This is returned by useAuthContext and is useful to retrieve the token provided by the backend. |