accesstoken

package
v0.0.0-...-16d19c9 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(userId string) (string, error)

Types

type Claims

type Claims struct {
	Id string `json:"id"`
}

func ExtractClaims

func ExtractClaims(tokenString string) (Claims, bool)

func GetClaimsFromContext

func GetClaimsFromContext(ctx context.Context) (Claims, bool)

Jump to

Keyboard shortcuts

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