Ask coding questions

← Back to all posts
How do you make a repl auth?
JWZ6 (654)

I’v seen a repl auth in many repls so I want to know how to create one. Also, how do you detect the value of it thx

Answered by OldWizard209 (1521) [earned 5 cycles]
View Answer
OldWizard209 (1521)

You can create a repl auth using HTML, with this simple script:

    <script authed="location.reload()" src=""></script>

You will see a "Login with replit" button and clicking on it will take you to the auth page.

For more info, check out the docs

You can detect the value using DOM and JS. or once again, check the docs, it is written in there.