Skip to content

v0.4.0

Choose a tag to compare

@jakekgrog jakekgrog released this 23 Aug 10:12
· 30 commits to main since this release
6f51b76

What's Changed

  • CreateClientSideDecryptToken function 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