auth

package
v0.0.0-...-ae427b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const SessionDuration = 6 * 30 * 24 * time.Hour

Variables

This section is empty.

Functions

func HasActiveSession

func HasActiveSession(db *sql.DB, chatID int64) (bool, error)

func Login

func Login(secret, code string, db *sql.DB, chatID int64) error

func Logout

func Logout(db *sql.DB, chatID int64) error

func VerifyStepUp

func VerifyStepUp(secret, code string, db *sql.DB, chatID int64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL