tryethernal / ethernal

Ethernal is a block explorer for EVM-based chains. In a few seconds, spin up a fully-featured explorer for your L1/L2 rollup/testnet. Compatible with Optimism, ZK, Anvil, Hardhat, Geth...
https://www.tryethernal.com
Other
211 stars 51 forks source link

Add Twitter & Discord auth for faucets #351

Open antoinedc opened 5 months ago

antoinedc commented 5 months ago

In the faucet settings page, there should be an option to activate twitter & discord auth to be allowed to request tokens from the faucet. The discord user id and the twitter user id should be stored alongside each faucet drip when activated If a drip has been done before the cooldown is elapsed by one of these ids, they should not be allowed to get more tokens yet, even for different addresses

@ellipsis-dev, implement this

ellipsis-dev[bot] commented 5 months ago
:rocket: This implementation plan was created by @ellipsis-dev

Tag me (@ellipsis-dev) in a comment with guidance if you want me to replan or to implement this plan.

Implementation Steps

Step 1: Add Passport.js strategies for Twitter and Discord

Step 2: Add Discord strategy

Step 3: Update authentication middleware

Step 4: Update faucet settings page

Step 5: Update FaucetDrip model


Questions? Check out our documentation. Leave :+1:/:-1: on this plan to customize Ellipsis' plans.