tmaauth

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AuthorizationPrefixTMA = "tma"

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims initdata.InitData

type TmaAuth

type TmaAuth struct {
	// contains filtered or unexported fields
}

func NewTmaAuth

func NewTmaAuth(token string, expIn time.Duration) *TmaAuth

func (*TmaAuth) GenerateToken

func (t *TmaAuth) GenerateToken(ctx context.Context, claims *Claims) (string, error)

func (*TmaAuth) ParseToken

func (t *TmaAuth) ParseToken(ctx context.Context, token string) (*Claims, error)

Jump to

Keyboard shortcuts

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