ReplAuth not working with deployments?
It says " Cannot be found "
I have looked far and wide for solutions, it works on my non-deployed repl.co website, but not on my deployed replit.app or custom domain.
I use edited base code from the replauth guide docs
<div id="profileDiv">
<p id="user"></p>
<p id="bio"></p>
<p id="rank"> </p>
<button id="login" onclick="LoginWithReplit()"> Login with Replit</button><br>
<button id="profileBack"> Back </button>
</div>
<script type="module">
const OGS = ["grosesyt", "ilovegambling", "BMW"];
const user = await getUserInfo()
if (user) {
document.getElementById('user').innerHTML = "Hello " + user.name;
document.getElementById('login').style.visibility = "hidden";
if(user.bio){
document.getElementById('bio').innerHTML = user.bio;
}
}
if(user.name == "maxor"){
document.getElementById('rank').innerHTML = "Rank: Dev";
}
if(OGS.includes(user.name)){
document.getElementById('rank').innerHTML = "Rank: OG";
}
</script>