Ask coding questions

← Back to all posts
How do I add repl.it auth?
AustinCharb (16)

Hello! I am new to JS and WebSockets in HTML, JS, and CSS, but I am building a chat app, and I was wondering how I could add Repl.it authentication

Answered by Coder100 (17144) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (17144)

You will need to have a backend.
I recommend nodejs as that is what you appear to be following as your tutorial.

That means you need to create an actual nodejs repl instead of an HTML one! https://replit.com/l/nodejs

https://replit.com/talk/learn/How-to-Repl-Auth-Expressjs/23558

brokentoken (51)

Well if you considering using flask there is a tutorial at the link

https://replit.com/talk/learn/Authenticating-users-with-Replit-Auth/23460

SixBeeps (5066)

To use Repl Auth, you need some kind of backend server. Here's a tutorial which uses Flask as the backend.