jose

package
v0.0.0-...-a7fa96f Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultService

type DefaultService struct {
	// contains filtered or unexported fields
}

DefaultService Implements a default JWT Service (Jose)

func NewService

func NewService(logger *zap.SugaredLogger, publicKey string) (*DefaultService, error)

NewService all keys must be base64 encoded

func (*DefaultService) Parse

func (s *DefaultService) Parse(jwsToken string) (*models.MyClaims, error)

Parse Validates an existing JWS and returns its claims

type IService

type IService interface {
	Parse(jwsToken string) (*models.MyClaims, error)
}

Jump to

Keyboard shortcuts

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