auth

package
v0.0.0-...-ec4765f Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Authentication routine with jwt

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(email string) (*d.TokenDetailsDTO, error)

CreateToken will 'create' a jwt token

func TokenValid

func TokenValid(bearerToken string) (*jwt.Token, error)

TokenValid will check whether the 'given' token was valid or not

Types

This section is empty.

Jump to

Keyboard shortcuts

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