auth

package
v0.0.0-...-247c3a5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("auth not found")

Functions

func NewContext

func NewContext(ctx context.Context, auth *Auth) context.Context

Types

type Auth

type Auth struct {
	UserID    user.ID
	Method    Method
	SocialID  SocialID
	CreatedAt time.Time
	UpdatedAt time.Time
}

func FromContext

func FromContext(ctx context.Context) (*Auth, bool)

type Method

type Method string
const (
	MethodTelegram Method = "telegram"
)

type SocialID

type SocialID null.String

Directories

Path Synopsis
storage

Jump to

Keyboard shortcuts

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