I am implementing auth0 for the first time. Until now I have read about auth0-lock, auth0-react, auth0-js and auth0-spa.
I couldn’t find a way to provide the css, theme and other UI options from my react app.
This is my Setup.
import Router from '@/router/router';
import { getConfig } from './auth/config/config';
import { Auth0Provider } from "@auth0/auth0-react";
load();
const config = getConfig();
const providerConfig = {
domain: config.domain,
clientId: config.clientId,
authorizationParams: {
redirect_uri: window.location.origin
}
};
ReactDOM.createRoot(document.getElementById('root')).render(
<Auth0Provider {...providerConfig}>
<React.StrictMode>
<Router />
</React.StrictMode>
</Auth0Provider>
);
I have enabled the Customize Login Page
and selected Lock from the templates.
- Do I need to update the template?
- Can I provide theme, logo in the providerConfig object ?