Ask coding questions

← Back to all posts
Replit Auth not Redirecting
CosmicBear

I'm trying to verify users using replit auth, but it isn't redirecting from the authorization page. This is the code:
<script authed="location.replace('/auth')" src="https://740f2678-b4d5-48aa-8e68-2860fdc57d73.id.repl.co/static/auth.js"></script>
The script is a modified version of https://auth.turbio.repl.co/script.js

The problem is that the function "authComplete" isn't running. I don't know javascript, but I assume that the script can't detect "message". I don't know how to fix this. Could someone please help?

Project Link:
https://replit.com/@skylercheng12/homepage#webApp.py

Answered by ch1ck3n [earned 5 cycles]
View Answer
Voters
CosmicBear
Comments
hotnewtop
ch1ck3n

instead of a form make it a div

ruiwenge2

it works though

CosmicBear

@ruiwenge2 i just fixed it a few seconds ago

ruiwenge2