Change view based on login in Shinyapps io

I am trying to build a shiny app where the user view changes based on who has logged in. I have seen examples of this being done using Shiny server pro or R Studio connect but since we don't have much budget for that software we are still doing it using shinyapps io. Has any tried doing it there or have some examples which I can refer to . Thank you.

instead of passing only input and output to your server param of your shinyApp() function call

server = function(input, output) 

make session explicit

server = function(input, output, session) 

then you can access the contents of :

session$user
1 Like

And this works on shinyapps io ?

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.