Get the most from rLogin!
You can trigger different pop ups after the user has logged in
rLogin.showWalletInfo()
rLogin.showChangeNetwork()
Listen to the network changes in the provider with
provider.on('networkChanged', (netId) => {})
as per the standard
rLogin includes 7 languages by default.
To add more languages see
src/i18n.ts
Restrict supported languages:
const rLogin = new RLogin({
// ...
supportedLanguages: ['en', 'es']
})
Listen to different user events
rLogin.on('languageChanged', (language) => {})
rLogin.on('themeChanged', (theme) => {})
Get deep info from the rLogin response
rLogin.connect().then(({
provider, // the web3 provider
disconnect, // the logout function
selectedLanguage,
selectedTheme,
dataVault // Data Vault client already set-up
// for permissioned mode
}) => {})
The tool has a customizable dark/light mode.
See src/theme.ts
and configure
const rLogin = new RLogin({
// ...
customThemes: { /* { ... } */ }
})
You can modifty any of the elements inside the pop-up using CSS. Find the component you want to alter and get its class name from src/constants/cssSelectors.ts
Go to top