authServer | R Documentation |
This function sets up the server-side logic for the Authentication module, handling user authentication, signup, and guest access.
authServer(id, postgres_module, user_table = "users")
id |
A character string that matches the ID used in |
postgres_module |
A postgresModule instance to handle database operations |
user_table |
A character string specifying the name of the users table |
A list containing authentication status and user information
server <- function(input, output, session) {
postgres <- postgresServer("postgres_module", ...)
auth <- authServer("auth_module", postgres, "users")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.