Fix: fix android login

This commit is contained in:
Pieter Vander Vennet 2025-07-07 00:06:49 +02:00
parent a1711c256b
commit e4f7028819
2 changed files with 6 additions and 1 deletions

View file

@ -38,5 +38,5 @@ connection.finishLogin(async () => {
tokenSrc.set("ERROR: no token retrieved!")
return
}
window.location.href = "orgmapcomplete://passthrough.html?oauth_token=" + token
window.location.href = "https://app.mapcomplete.org/passthrough.html?oauth_token=" + token
})

View file

@ -12,5 +12,10 @@ Hey!
Open this page with the app. (Press the menu, "open in app")
<script>
const token = new URLSearchParams(window.location.search).get("oauth_token")
window.location.href = "orgmapcomplete://app.mapcomplete.org/passthrough.html?oauth_token=" + token
</script>
</body>
</html>