Authenticate your Replit Users without ReplAuth.

Overview

Replit Login

An unofficial way to authenticate your Replit users

Authenticate Replit users in your projects without ReplAuth. This uses the actual Replit Login API to authenticate connect.sid tokens and return whether a user would login.

Install

$ npm install replit-login
$ yarn add replit-login

Usage

import { login, test } from 'replit-login';

const { username, password, captcha } = process.env;

const { token, message } = await login(username, password, captcha);

console.log('Login:', token ? token : message);
console.log('Test:', await test(token));

Note: You will need some frontend component that allows you to use the hCaptcha widget to get hCaptcha tokens. If you are just testing then you can use this website. The tokens expire in 2 minutes.

Personal Note

In the spirit of open source software I made this codebase public since it only abstracts API's that already exist without circumventing a captcha. Use it as a tool and abide by the Replit Terms of Service (see below). Improper use of the package can result in bans on Replit and possibly legal action.

Legal

From https://replit.com/site/terms as pertains to the use of this package. This is not the entire ToS, simply snippets that reference important parts that I thought was relevant.

Section 5 (Prohibited Actions), Item 10

Interfere with or disrupt the Services or create an undue burden on Replit's Service or the networks or services connected to Replit's Service;

Section 5 (Prohibited Actions), Item 11

Use the Service to attack or tamper with other websites, services, and individuals;

Section 5 (Prohibited Actions), Item 13

Launch any automated system, including without limitation, “robots”, “spiders”, or “offline readers” that access the Service in a manner that sends more request messages to the Replit servers in a given period of time than a human can reasonably produce in the same period by using a conventional online web browser.

...

You agree not to collect or harvest any personally identifiable information, including account names, from the Service, nor to use the communication systems provided by the Services for any commercial solicitation purposes. You agree not to solicit, for commercial purposes, any users of the Service with respect to their content.

Section 5 (Prohibited Actions), Item 22

Repeatedly fork or clone projects to run or host the same code creating undue load on the Service.

You might also like...

An users NodeJS API without packages libs or frameworks!

NodeJS Users API - Without Frameworks And Packages 📝 Table of Contents About Getting Started Usage Built Using Authors 🧐 About Purpose of this proje

Feb 7, 2022

Awesome books app is a basic website that allows users to add/remove books from a list. It is a single page app (SPA) which allow switching to different pages of the app without page load. Built with JavaScript.

Awesome Books ES6 In this project, I build a basic website that allows users to add/remove books from a list. using ES6 syntax and make it more organi

Jul 1, 2022

A health-focused app for users to be able to track workouts and nutritional data with a social media component to inspire friendly competition among the users.

A health-focused app for users to be able to track workouts and nutritional data with a social media component to inspire friendly competition among the users.

Aug 26, 2022

This project is a To-do list app which users can store and edit their Todo Tasks. Users can also change the order of their todo

Project This project is about a todo app bundling using webpack Additional description about the project and its features. Built With HTML CSS Javascr

Jun 17, 2022

A totally functional user api. It's a service where you list users, create users, update or even delete them.

USER-API 🎯 ABOUT A user api system made with TypeScript using express and prisma. It's a service where you list user, create users, update them or ev

Oct 27, 2022

NFTKastle is an NFT marketplace where users can mint their pictures as NFTs, list their NFTs for sale, and buy NFTs from other users.

NFTKastle NFTKastle is an NFT marketplace where users can mint their pictures as NFTs, list their NFTs for sale, and buy NFTs from other users. NFTKas

Oct 31, 2022
Owner
Ray
Teen Fullstack Dev && Software Engineer (aka Hay or Ari on the Internetz)
Ray
A NodeJS Replit API package wrapped around GraphQL, returning JSON data for easy use.

repl-api.js A NodeJS Replit API package wrapped around GraphQL, returning JSON data for easy use. Contents: About Quickstart Pre-installation Installa

kokonut 5 May 20, 2022
Deploy a local project to Replit, in seconds!

mvrepl A tool to deploy a local project to replit, in seconds! Requirements: latest version of Node.js (https://nodejs.org/) latest version of npm (ht

grr 5 Jun 18, 2022
A community-led token scanner for Replit utilizing its own APIs.

Replit Token Scanner A community-led project that aims to scan published Repls to find secrets and invalidate them. Usage This repo contains the scann

Ray 18 Nov 6, 2022
An abstraction layer on top of @replit/crosis that makes Repl connection management and operations so easy, a Furret could do it! 🎉

Crosis4Furrets An abstraction layer on top of @replit/crosis that makes Repl connection management and operations so easy, a Furret could do it! ?? In

Ray 18 Dec 29, 2022
Generate a secured base32 one time password to authenticate your user! 🔐

Django SOTP ?? Generate a secured base32 one time password to authenticate your user! Case Study ?? Before I mention why you should use django-sotp in

アブラム (Abram) 36 Dec 22, 2022
Utility for authorizing user in a connected app, creating JWT to authenticate against it, and perform a sample callout.

Question: What is this for? Answer: When configuring a Salesforce Connected app to use certificates to authenticate you will use JSON Web Tokens to a

null 4 Jun 15, 2022
Calculating Pi number without limitation until 10k digits or more in your browser powered by JS without any third party library!

PI Calculator Web JS (Online) Calculating Pi number without limitation until 10k digits or more in your browser powered by JS without any third party

Max Base 6 Jul 27, 2022
A simple Node.js code to get unlimited instagram public pictures by every user without api, without credentials.

Instagram Without APIs Instagram Scraping in August 2022, no credentials required This is a Node.js library, are you looking for the same in PHP? go t

Francesco Orsi 28 Dec 29, 2022