Microapp authentication for React apps.
AuthProvider
component:
sandbox
feature on the AuthProvider
component to return mocked users:
sandbox
prop should only be used for local development. Do not use it in
production.useAuth
HookuseAuth
hook returns all of the auth data and methods available to your microapp. It returns the following type:
requestLogin
method.
useAuth
hook in your microapp: