Learn R Programming

solvebio (version 2.15.0)

protectedServerJS: protectedServerUI

Description

Returns ShinyJS-compatible JS code to support cookie-based token storage.

Usage

protectedServerJS()

Arguments

References

https://docs.solvebio.com/

Examples

Run this code
if (FALSE) {
jscookie_src <- "https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.2.0/js.cookie.js"
ui <- fluidPage(
    shiny::tags$head(
        shiny::tags$script(src = jscookie_src)
    ),
    useShinyjs(),
    extendShinyjs(text = solvebio::protectedServerJS(),
                  functions = c("enableCookieAuth", "getCookie", "setCookie", "rmCookie"))
)
}

Run the code above in your browser using DataLab