auth

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	AccessSecret []byte
	Issuer       string // e.g. "gochat"
	Audience     string // e.g. "api" (or "ws" if you prefer)
	Leeway       time.Duration
}

func New

func New(accessSecret, issuer, audience string) *Auth

func (*Auth) ParseAccess

func (a *Auth) ParseAccess(token string) (*helper.Claims, error)

Jump to

Keyboard shortcuts

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