model

package
v0.0.0-...-c7413e9 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 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 User

type User struct {
	Id            primitive.ObjectID `bson:"_id"`
	UserId        string             `bson:"user_id"`
	Username      string             `bson:"username"`
	Password      string             `bson:"password"`
	Secret        string             `bson:"secret"`
	Permissions   []string           `bson:"permissions"`
	RefreshToken  string             `bson:"refresh_token"`
	IsMfaEnabled  bool               `bson:"is_mfa_enabled"`
	IsMfaVerified bool               `bson:"is_mfa_verified"`
}

type UserClaims

type UserClaims struct {
	jwt.StandardClaims
	Uid   string   `json:"uid"`
	Roles []string `json:"roles"`
}

Jump to

Keyboard shortcuts

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