Skip to content

Commit

Permalink
docs: fix logout button in browser_example
Browse files Browse the repository at this point in the history
  • Loading branch information
rbellens committed Dec 30, 2022
1 parent c89d11b commit 70ffbeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/browser_example/web/main.dart
Expand Up @@ -25,6 +25,9 @@ Future<void> main() async {
document.querySelector('#when-logged-in')!.style.display = 'block';
document.querySelector('#name')!.text = userData.name!;
document.querySelector('#email')!.text = userData.email!;
document.querySelector('#logout')!.onClick.listen((_) async {
authenticator.logout();
});
} else {
document.querySelector('#when-logged-out')!.style.display = 'block';
document.querySelector('#login')!.onClick.listen((_) async {
Expand Down

0 comments on commit 70ffbeb

Please sign in to comment.