type

LoginOptions

Request metadata and cookie-independent controls for local login.

Properties

PropertyTypeDescription
IPAddressstringDirect or trusted-forwarded client address recorded for the session.
UserAgentstringUntrusted client user-agent string recorded for session management.

How it works

Transports should derive IPAddress only after applying their trusted-proxy policy. These values are session metadata, not authentication factors.

Full signature

type LoginOptions struct { // IPAddress is the direct or trusted-forwarded client address. IPAddress string // UserAgent is the untrusted client user-agent string. UserAgent string }

Source core/auth.go:81