JohnCoene / firebase

Google FIrebase for shiny
https://firebase.john-coene.com
GNU Affero General Public License v3.0
171 stars 26 forks source link

f$get_signed_in() now returns $response not $user as documented #3

Closed MarkEdmondson1234 closed 3 years ago

MarkEdmondson1234 commented 4 years ago

The print for the below code:

 output$msg <- renderUI({
    f$req_sign_in() # require sign in

    user <- f$get_signed_in() # get logged in user info
    print(user)

    h4("Welcome,", user$response$displayName)
  })

is

$success
[1] TRUE

$response
$response$uid
[1] "XXXX"

$response$displayName
[1] "Mark Edmondson"
...

but the documentation on https://firebase.john-coene.com/articles/manage.html states:

#> $signed_in
#> [1] TRUE
#> 
#> $user
#> $user$uid
#> [1] "XXxxX"
#> 
#> $user$displayName
#> [1] "John"
...

which led to some confusion :)