Releases: crossid/crossid-react
Releases · crossid/crossid-react
v0.2.5
support for region and signupWithRedirect
Major Changes
- Support for crossid tenant's region configuration.
signupWithRedirect()method- upgrade
@crossid/crossid-spa-jsto v0.4.3
Support for React 17 and 18
Upgrade crossid-spa-js dependency to 0.4.1
Introspect access token locally.
Combines two hooks into a single useAuth.
Support for `state_type` opt
Logout via redirect
withRequired high order component
0.0.2
Major Changes
withRequiredhigh order component to protect components from being rendered if user is not authenticated.
Initial release - a provider and a hook for manage auth lifecycle in React.
0.0.1
Major Changes
- A React provider as a wrapper around crossid-spa-client and initializes a client automatically.
- Provider maintains a state for the authenticated user and client.
- Provider handles redirect callback by invoking client
handleRedirectCallbackautomatically. - Delegate
getAccessTokenfrom provider. - Delegate
loginWithRedirectso app can start the login (e.g., within a protected route if user is not authenticated).