Expire After a Duration
Last updated
Last updated
In this guide, you'll learn how you can configure a Grant Kit to automatically revoke access to a grant after some duration. You'll do this by importing and using an expiration policy Abbey provides out-of-the-box.
We will be using the as a base and modify it to this use case.
In your repo, add a directory to put your policies.
First, configure your Manifest in your .manifest
file. This will tell the Policy Engine where your policy file is located.
Next, write your policy using Abbey's expiration helper functions.
Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
Now that you have your policy set up, you can add it to your Grant Kit.