Is a set of utility scripts for the warpcast.com API for Farcaster around generating and revoking auth tokens
- Clone this repo
- Set up your .env file using .env.template with your seed phrase from your farcaster wallet (12 or 24 words)
- Make sure you have node 18 installed
- Run
npm install
- Now you can run any of the scripts below
Replace "MK-....==" with the auth token you want to revoke
npm run revoke MK-rDdfdstxfsdfFf0DhMwCmopf+NPYfw==
This will revoke all your farcaster auth tokens with expiresAt less than 109999999999999 This is likely all your tokens, and will likely break any third party apps you have signed in with your farcaster wallet with.
npm run revoke-all
This token will live until it is revoked or until it is not one of the 50 tokens with the latest expiry date
npm run create-authtoken
npm run create-ten-minute-token
Errors are unhandled, and will throw, exiting the process. The error will be logged to STDOUT