forked from MapComplete/MapComplete
Fix: fix android login
This commit is contained in:
parent
a1711c256b
commit
e4f7028819
2 changed files with 6 additions and 1 deletions
|
@ -38,5 +38,5 @@ connection.finishLogin(async () => {
|
||||||
tokenSrc.set("ERROR: no token retrieved!")
|
tokenSrc.set("ERROR: no token retrieved!")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
window.location.href = "orgmapcomplete://passthrough.html?oauth_token=" + token
|
window.location.href = "https://app.mapcomplete.org/passthrough.html?oauth_token=" + token
|
||||||
})
|
})
|
||||||
|
|
|
@ -12,5 +12,10 @@ Hey!
|
||||||
|
|
||||||
Open this page with the app. (Press the menu, "open in app")
|
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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue