middleware

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TwoFactorCommunicationChannel chan TwoFactorPair
View Source
var TwoFactorPairs []TwoFactorPair

Global available array of 2fa pairs

Functions

func TwoFactorService

func TwoFactorService()

entrypoint from main function

func ValidateAccessToken

func ValidateAccessToken(c *fiber.Ctx) (bool, string)

This functions validates the JWT It requires the context of the called API endpoint, to perform

Types

type TwoFactorPair

type TwoFactorPair struct {
	Username string
	Token    string
}

Base struct

Jump to

Keyboard shortcuts

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