package
0.9.2
Repository: https://github.com/oidc-mytoken/server.git
Documentation: pkg.go.dev

# Functions

CheckTransferCode checks the passed polling code in the database.
CreatePollingCode creates a polling code.
DeclineConsentByState updates the polling code attribute after the consent has been declined.
DeleteTransferCodeByState deletes a polling code.
LinkPollingCodeToMT links a pollingCode to a Mytoken.
LinkPollingCodeToSSHKey links a pollingCode to an ssh public key.
NewShortToken creates a new short token from the given jwt of a normal Mytoken.
NewTransferCode creates a new TransferCode for the passed jwt.
ParseShortToken creates a new short token from a short token string.
ParseTransferCode creates a new transfer code from a transfer code string.
PopTokenForTransferCode returns the decrypted token for a polling code and then deletes the entry.

# Structs

ShortToken holds database information of a short token.
TransferCode is a type used to transfer a token.
TransferCodeStatus holds information about the status of a polling code.