jwtdown-for-react package

Home > @galvanize-inc/jwtdown-for-react

jwtdown-for-react package#

Variables#

Variable

Description

AuthContext

Context Hook for authentication. Store token and other data.

AuthProvider

React context provider that provides AuthContext to application, which should be a child node of this component.

useAuthContext

Context Hook.

useToken

Hook that provides token, register, login, logout, fetchWithCookie, and fetchWithToken

Type Aliases#

Type Alias

Description

AuthContextType

Object containing the state of AuthContext. This is returned by useAuthContext and is useful to retrieve the token provided by the backend.