Open antoinedc opened 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.
passport-twitter
and passport-discord
libraries using npm install passport-twitter passport-discord
.run/middlewares/strategies/twitter.js
for the Twitter strategy.twitter.js
, import the necessary modules and configure the Twitter strategy with the appropriate client ID, client secret, and callback URL.run/middlewares/strategies/discord.js
for the Discord strategy.discord.js
, import the necessary modules and configure the Discord strategy with the appropriate client ID, client secret, and callback URL.passportLocalStrategy.js
file to include the new Twitter and Discord strategies.ExplorerFaucetSettings.vue
file to include options for Twitter and Discord authentication.FaucetDrip
model to include twitterUserId
and discordUserId
fields.safeCreateDrip
method in the ExplorerFaucet
model to accept these user IDs and store them in the FaucetDrip
records.getCooldown
method in the ExplorerFaucet
model to check for cooldowns based on these user IDs.Questions? Check out our documentation. Leave :+1:/:-1: on this plan to customize Ellipsis' plans.
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