MarkEdmondson1234 / googleAuthR

Google API Client Library for R. Easy authentication and help to build Google API R libraries with OAuth2. Shiny compatible.
https://code.markedmondson.me/googleAuthR
Other
175 stars 51 forks source link

A better logout button #58

Closed MarkEdmondson1234 closed 6 years ago

MarkEdmondson1234 commented 7 years ago

as per https://lesliemyint.wordpress.com/2017/01/01/creating-a-shiny-app-with-google-login/

observe({
    if (rv$login) {
        shinyjs::onclick("gauth_login-googleAuthUi",
            shinyjs::runjs("window.location.href = 'https://yourdomain.shinyapps.io/appName';"))
    }
})
MarkEdmondson1234 commented 6 years ago

Now documented, rather than adding another dependency.