helper

package module
v0.0.0-...-c5218a6 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 3 Imported by: 2

README

auth-helper

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TtlMinute int
	TtlHour   int
	TtlDay    int
	Secret    []byte
}

type Helper

type Helper struct {
	// contains filtered or unexported fields
}

func NewHelper

func NewHelper(cfg *Config) (*Helper, error)

func (*Helper) Authenticate

func (h *Helper) Authenticate(str string) (string, error)

func (*Helper) ParseTokenString

func (h *Helper) ParseTokenString(tokenString string) (string, error)

Jump to

Keyboard shortcuts

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