This repository is a project template for building automated session revocation base on Flare's Cookie Monitoring API.
It implements a script that goes through the following steps:
- Fetch new leaked cookies.
- Validate them.
- Revoke the ones that are still valid.
- Save the cursor for the next run.
1 - Export your Flare API Key and Tenant Id
export FLARE_API_KEY="api-key-here"
export FLARE_TENANT_ID="tenant-id-here"
2 - Run the script
make run
For this to be production-grade, you will want to modify the default implementations of the following methods:
get_cursor
save_cursor
verify_cookie
invalidate_cookie