Back to Pocketbase

Interface Userinfo

static/jsvm/interfaces/url.Userinfo.html

latest1.1 KB
Original Source

Interface Userinfo

The Userinfo type is an immutable encapsulation of username and password details for a [URL]. An existing Userinfo value is guaranteed to have a username set (potentially empty, as allowed by RFC 2396), and optionally a password.

Hierarchy

  • Userinfo

Index

Methods

passwordstringusername

Methods

password

  • password(): [string, boolean]

Password returns the password in case it is set, and whether it is set.

Returns [string, boolean]

string

  • string(): string

String returns the encoded userinfo information in the standard form of "username[:password]".

Returns string

username

  • username(): string

Username returns the username.

Returns string

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc