authServer {mmints}R Documentation

Server function for Authentication Shiny Module

Description

This function sets up the server-side logic for the Authentication module, handling user authentication, signup, and guest access.

Usage

authServer(id, postgres_module, user_table = "users")

Arguments

id

A character string that matches the ID used in authUI()

postgres_module

A postgresModule instance to handle database operations

user_table

A character string specifying the name of the users table

Value

A list containing authentication status and user information

Examples

server <- function(input, output, session) {
  postgres <- postgresServer("postgres_module", ...)
  auth <- authServer("auth_module", postgres, "users")
}

[Package mmints version 0.2.0 Index]