jwt

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(s string) ([]byte, error)

Base64Decode decodes a base 64 string to a byte array.

func Base64Encode

func Base64Encode(bb []byte) string

Base64Encode encodes a byte array to a base 64 string.

func CryptoHash

func CryptoHash(base string) string

CryptoHash generates a cryptographically safe hash based on the given string parameter.

func DecodeToken

func DecodeToken(token string) (*jwt.StandardClaims, error)

DecodeToken decodes the non-secret part of the jwt token and extracts the associated claims. Note: this method does not verify the tokens validity, for this the corresponding endpoint of the iam service should be used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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