- upgrade
@crossid/crossid-spa-js
to v0.4.4
- Support for crossid tenant's region configuration.
signupWithRedirect()
method- upgrade
@crossid/crossid-spa-js
to 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 the
state_type
option.
- logout via redirect.
withRequired
high order component to protect components from being rendered if user is not authenticated.
- 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
handleRedirectCallback
automatically. - Delegate
getAccessToken
from provider. - Delegate
loginWithRedirect
so app can start the login (e.g., within a protected route if user is not authenticated).