auth

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthToken

type AuthToken struct {
	ID          primitive.ObjectID  `bson:"_id,omitempty"`
	ApiKey      string              `bson:"api-key"`
	ValidUntil  *primitive.DateTime `bson:"timestamp,omitempty"`
	Permissions bson.M              `bson:"permissions,omitempty"`
}

AuthToken defines an authentication token.

Jump to

Keyboard shortcuts

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