v0.4.0
What's Changed
CreateClientSideDecryptTokenfunction has been added.
// Note: This function isn't available if you are in scope for PCI.
//
// `CreateClientSideDecryptToken` creates a time bound token that can be used to perform decrypts.
// The payload is required and ensures the token can only be used to decrypt that specific payload.
//
// The expiry is the time the token should expire.
// The max time is 10 minutes in the future and defaults to 5 minutes if not provided.
//
// It returns a TokenResponse or an error
//
token, err := CreateClientSideDecryptToken(payload, timeInFiveMinutes)Full Changelog: v0.3.0...v0.4.0