utils

package
v0.0.0-...-ba94b96 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(w http.ResponseWriter, r *http.Request, secret []byte) (bool, error)

func GenerateTokens

func GenerateTokens(payload string, secret []byte) (interface{}, error)

Types

type TokenResponse

type TokenResponse struct {
	AccessToken  string `json:"accessToken"`
	RefreshToken string `json:"refreshToken"`
}

Jump to

Keyboard shortcuts

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