hooks

package
v0.0.0-...-8a5cc0a Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithJWTAuth

func WithJWTAuth(parser TokenParser, skip ...string) *twirp.ServerHooks

WithJWTAuth creates new twirp authentication hook

Types

type TokenParser

type TokenParser interface {
	ParseToken(string) (*twisk.AuthUser, error)
}

TokenParser represents jwt auth token parser and validator

Jump to

Keyboard shortcuts

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