Ask coding questions

← Back to all posts
How do I add 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 authentication

Answered by Coder100 (17144) [earned 5 cycles]
View Answer
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!

brokentoken (51)

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

SixBeeps (5066)

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