auth

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	// ID is the unique identifier of the authenticated user.
	ID uuid.UUID

	// Username is the username of the authenticated user.
	Username string

	// Token is the authentication token issued to the authenticated user.
	Token string
}

Result represents the result of a successful authentication.

func NewResult

func NewResult(id uuid.UUID, username, token string) *Result

NewResult creates and return a new Result instance with the provided user ID, username, and token.

Jump to

Keyboard shortcuts

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