hooks

package
v0.0.0-...-faa3d42 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 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) (*easypay.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