jwtutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Separator is the character between
	// "Bearer" and the token itself.
	Separator = " "
)

Variables

This section is empty.

Functions

func BearerToken

func BearerToken(r *http.Request) (string, error)

BearerToken parses the Authorization HTTP header and retrieves only the token from it.

func Decode

func Decode(src string) ([]byte, error)

Decode returns a decoded string using base64 decoding.

func Encode

func Encode(src []byte) string

Encode returns an encoded string using base64 encoding.

Types

This section is empty.

Jump to

Keyboard shortcuts

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