Zum Inhalt springen

Auth Widget

Vorgefertigte UI-Widgets für schnelle Integration mit anpassbarem Design.

import { AuthWidget } from 'https://auth.deine-domain.de/client/auth-widget.js';
const widget = new AuthWidget({
authServerUrl: 'https://auth.deine-domain.de',
container: document.getElementById('auth-widget')
});
widget.render();
const widget = new AuthWidget({
authServerUrl: 'https://auth.deine-domain.de',
container: document.getElementById('auth-widget'),
showProfile: true,
theme: 'light', // oder 'dark'
buttonText: 'Login',
logoutText: 'Logout'
});

Du kannst das Widget mit CSS anpassen:

.auth-widget {
/* Deine Styles */
}
.auth-widget button {
/* Button Styles */
}
.auth-widget .profile {
/* Profil Styles */
}