device

package
v3.57.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureActiveOnLogin

func EnsureActiveOnLogin(userID uint, deviceKey, ua, ip string) error

EnsureActiveOnLogin is used only in login flow: - If session exists (even Inactive): reactivate and refresh fields. - If not exists: apply max-devices policy, then create Active session.

func Handle

func Handle(userID uint, deviceKey, ua, ip string) error

Handle verifies device sessions for a user and upserts current session.

func Refresh

func Refresh(userID uint, deviceKey string)

Refresh updates last_active for the session.

Types

This section is empty.

Jump to

Keyboard shortcuts

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