Don’t forget to configure your environment variables.
Also, set the port, running something like
options(shiny.port = 8080)
.
library(shiny)
library(auth0)
# # run this before running the app:
# options(shiny.port = 8080)
# shiny::enableBookmarking(store = "server")
# this example is the same as bookmark, but using bookmarking
ui <- function(request) {
fluidPage(
textInput("txt", "Enter text"),
checkboxInput("caps", "Capitalize"),
verbatimTextOutput("out"),
bookmarkButton(),
logoutButton()
)
}
auth0_ui(ui)
library(shiny)
library(auth0)
# # run this before running the app:
# options(shiny.port = 8080)
# shiny::enableBookmarking(store = "server")
server <- function(input, output, session) {
output$out <- renderText({
if (input$caps)
toupper(input$txt)
else
input$txt
})
}
auth0_server(server)