From 7c2ee962221445d1f3976d10da3d6c64e6db238e Mon Sep 17 00:00:00 2001 From: Randy Merrill Date: Mon, 23 May 2016 12:31:22 -0700 Subject: [PATCH] Updating the documentation to make it more clear how the `google-signin` works. Also provides guidance on how to use the `google-signin-aware` with custom signin UIs. Closes #143 --- google-signin-aware.html | 88 +++++++++++++++++++------------------ google-signin.html | 94 ++++++++++++++++++++-------------------- 2 files changed, 93 insertions(+), 89 deletions(-) diff --git a/google-signin-aware.html b/google-signin-aware.html index f05b978..ba40167 100644 --- a/google-signin-aware.html +++ b/google-signin-aware.html @@ -486,48 +486,52 @@ AuthEngine.init(); -/** -`google-signin-aware` is used to enable authentication in custom elements by -interacting with a google-signin element that needs to be present somewhere -on the page. - -The `scopes` attribute allows you to specify which scope permissions are required -(e.g do you want to allow interaction with the Google Drive API). - -The `google-signin-aware-success` event is triggered when a user successfully -authenticates. If either `offline` or `offlineAlwaysPrompt` is set to true, successful -authentication will also trigger the `google-signin-offline-success`event. -The `google-signin-aware-signed-out` event is triggered when a user explicitly -signs out via the google-signin element. - -You can bind to `isAuthorized` property to monitor authorization state. -##### Example - - - - -##### Example with offline -