package
1.0.0
Repository: https://github.com/uvalib/virgo4-jwt.git
Documentation: pkg.go.dev

# Functions

AuthFromString converts string auth to AuthEnum.
Mint will create a new JWT for Virgo4 using the claims and signing key provided.
Refresh will verify the signature of a token, refresh its expiration time and re-sign.
RoleFromString converts string roles to Enum.
Validate will verify the signature of a token and return the claims it contains.

# Constants

Admin is a signed in user with admin privileges.
Guest is a non-authenticated user.
Netbadge indicates authentication using Netbadge.
NoAuth indicates there as no authentication.
PDAAdmin is a signed in user with PDA admin privileges.
PIN indicates authentication using a Sirsi PIN.
Staff is a user that is also a virgo staff member with less access than an admin.
User is a standard signed in user.

# Structs

V4Claims encapsulates all of the information about Virgo4 user.

# Type aliases

AuthEnum is the enumerated type for V4 user authentication methods.
RoleEnum is the enumerated type for V4 user role.