auth

package
v0.4.6-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package auth implements token validation and auth middleware integration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

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

func Init

func Init(cfg *shared.Config, s store.InstanceStore) *Auth

func (*Auth) ValidateToken

func (a *Auth) ValidateToken(ctx context.Context, tokenStr string) (*pkgAuth.Claims, error)

Jump to

Keyboard shortcuts

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