session

package
v0.0.0-...-b557599 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionClaims

type SessionClaims struct {
	jwt.RegisteredClaims
}

func NewSessionClaims

func NewSessionClaims(sessionID string, cfg *config.Config) *SessionClaims

func Parse

func Parse(tokenStr string, secret []byte) (*SessionClaims, error)

func (*SessionClaims) Sign

func (s *SessionClaims) Sign(secret []byte) (string, error)

Jump to

Keyboard shortcuts

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