WhatsBot
3.0
Sign in to your account
r.json().then(data => ({ status: r.status, data }))) .then(res => { if (res.status === 200) { $store.session.setSession(res.data.data); document.cookie = 'access_token=' + res.data.data.access_token + '; path=/; max-age=' + (60 * 60 * 24 * 7); return $store.session.fetchWithAuth('/api/v1/user/me') .then(r => r.json()) .then(userData => { $store.session.setUser(userData.data); window.location.href = '/dashboard'; }); } else { error = res.data.err || 'Login failed. Please check your credentials.'; } }) .catch(err => { error = 'A network error occurred. Please try again.'; }) .finally(() => loading = false); " class="space-y-5">
Username
*
Password
*
Keep me logged in
Don't have an account?
Create one
© 2024 WhatsBot. All rights reserved.