package
0.1.7
Repository: https://github.com/openware/pkg.git
Documentation: pkg.go.dev

# Functions

ForgeToken creates a valid JWT signed with RS256 algorithm by the given private key.
ForgeTokenEdDSA creates a valid JWT signed with EdDSA algorithm by the given private key.
No description provided by the author
LoadOrGenerateKeysEdDSA creates a new EdDSA key store from the given private and public key paths or generates a new key pair if the files do not exist.
ParseAndValidate parses token and validates it's JWT signature with given RSA key.
ParseAndValidateEdDSA parses token and validates it's JWT signature with given EdDSA key.

# Structs

Auth struct represents parsed jwt information.
No description provided by the author
KeyStoreEdDSA is a key store for EdDSA keys.