Options Avancées
const config = {
apiUrl: 'https://api.sunuid.com',
clientId: 'VOTRE_CLIENT_ID',
secretId: 'VOTRE_SECRET_ID',
theme: 'light', // 'light' ou 'dark'
language: 'fr', // 'fr', 'en', 'ar'
autoRefresh: true, // Actualisation automatique
refreshInterval: 30000, // 30 secondes
onSuccess: function(data) {
console.log('SuccĂšs:', data);
window.location.href = '/dashboard';
},
onError: function(error) {
console.error('Erreur:', error);
},
onExpired: function() {
console.log('QR expiré');
}
};