authServer: Server function for Authentication Shiny Module

View source: R/authModule.R

authServerR 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")
}

mmints documentation built on April 3, 2025, 9:33 p.m.