Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

googleSignIn documentation incorrect #171

Closed
jonthegeek opened this issue Jan 8, 2020 · 1 comment · Fixed by #172
Closed

googleSignIn documentation incorrect #171

jonthegeek opened this issue Jan 8, 2020 · 1 comment · Fixed by #172

Comments

@jonthegeek
Copy link
Contributor

What goes wrong

The googleSignIn documentation says the values are g_id, g_email, g_image, and signed_in, but the actual values are id, name, email, image, and signed_in. It looks like the fields are renamed from their in-module names during the return:

function (input, output, session) 
{
    check_package_loaded("shiny")
    shiny::reactive({
        shiny::req(input$g_id)
        list(id = input$g_id, name = input$g_name, email = input$g_email, 
            image = input$g_image, signed_in = input$signed_in)
    })
}

I assume the preferred fix would be to change the documentation (since anybody using this has to be grabbing the g-less version of the list element), but wanted to check before submitting a PR.

@MarkEdmondson1234
Copy link
Owner

MarkEdmondson1234 commented Jan 8, 2020 via email

jonthegeek pushed a commit to jonthegeek/googleAuthR that referenced this issue Jan 9, 2020
MarkEdmondson1234 added a commit that referenced this issue Jan 10, 2020
Fixed `googleSignIn` documentation per #171.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants