jwttoken

package
v0.0.0-...-a167b32 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(sourceID uuid.UUID, sourceType model.AuthDataSourceType) (string, error)

New returns new JWT token for source_id, source_type

Types

type Claims

type Claims struct {
	SourceID   uuid.UUID
	SourceType model.AuthDataSourceType
}

Claims has key fields from token

func ParseAndValidate

func ParseAndValidate(tokenString string) (*Claims, error)

ParseAndValidate parses and validates JWT token

Jump to

Keyboard shortcuts

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