hooks

package
v0.0.0-...-5c3d8b3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: MIT Imports: 5 Imported by: 0

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