Ask coding questions

← Back to all posts
How do you make a repl auth?
h
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
Comments
hotnewtop
OldWizard209 (1521)

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

<div>
    <script authed="location.reload()" src="https://auth.turbio.repl.co/script.js"></script>
</div>

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.