Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidfurlong/farcaster-auth-tokens
Some local scripts to make it easier to work with warpcast.com api auth tokens.
https://github.com/davidfurlong/farcaster-auth-tokens
farcaster
Last synced: 8 days ago
JSON representation
Some local scripts to make it easier to work with warpcast.com api auth tokens.
- Host: GitHub
- URL: https://github.com/davidfurlong/farcaster-auth-tokens
- Owner: davidfurlong
- License: mit
- Created: 2023-01-15T12:50:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-02T13:04:17.000Z (almost 2 years ago)
- Last Synced: 2024-11-28T21:12:03.669Z (14 days ago)
- Topics: farcaster
- Language: TypeScript
- Homepage:
- Size: 24.4 KB
- Stars: 23
- Watchers: 3
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-farcaster - davidfurlong/farcaster-auth-tokens
- awesome-farcaster-dev - `farcaster-auth-tokens`
- awesome-farcaster-dev - `farcaster-auth-tokens`
README
# Warpcast.com API auth tokens for accessing Farcaster data
Is a set of utility scripts for the warpcast.com API for Farcaster around generating and revoking auth tokens
# Setup
1. Clone this repo
2. Set up your .env file using .env.template with your seed phrase from your farcaster wallet (12 or 24 words)
3. Make sure you have node 18 installed
4. Run `npm install`
5. Now you can run any of the scripts below# Scripts
## Revoke a single auth token
Replace "MK-....==" with the auth token you want to revoke
`npm run revoke MK-rDdfdstxfsdfFf0DhMwCmopf+NPYfw==`
## Revoke all auth tokens
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`
## Create long lived auth token
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`
## Create an auth token that will be valid for 10 minutes
`npm run create-ten-minute-token`
# Errors
Errors are unhandled, and will throw, exiting the process. The error will be logged to STDOUT