From e4bcd3cb474acf0df25a1fdcdef9abe5e9e8c9c1 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 12 Apr 2017 08:03:31 -0400 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 40996db7..c80af146 100644 --- a/README.md +++ b/README.md @@ -20,3 +20,11 @@ in this package. ```dart auth.authenticate('facebook', new AngelAuthOptions(callback: confirmPopupAuthentication())); ``` +This renders a simple HTML page that fires the user's JWT as a `token` event in `window.opener`. +`angel_client` [exposes this as a Stream](https://github.com/angel-dart/client#authentication): + +```dart +app.authenticateViaPopup('/auth/google').listen((jwt) { + // Do something with the JWT +}); +```