auth

package
v0.380.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAuthenticated added in v0.368.0

func IsAuthenticated(ctx context.Context) bool

func WithIdentity added in v0.368.0

func WithIdentity(ctx context.Context, identity *Identity) context.Context

Types

type Identity added in v0.368.0

type Identity struct {
	Id            string    `json:"id"`
	ExternalId    string    `json:"externalId"`
	Email         string    `json:"email"`
	EmailVerified bool      `json:"email_verified"`
	Password      string    `json:"-"`
	Issuer        string    `json:"issuer"`
	CreatedAt     time.Time `json:"createdAt"`
	UpdatedAt     time.Time `json:"updatedAt"`
}

func GetIdentity added in v0.368.0

func GetIdentity(ctx context.Context) (*Identity, error)

Jump to

Keyboard shortcuts

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