26 lines
631 B
HTML
26 lines
631 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>The Jailor auth</title>
|
|
</head>
|
|
<body>
|
|
<div id="result-text"></div>
|
|
</body>
|
|
</html>
|
|
|
|
<script type="module">
|
|
import {data} from "../core/appData.js";
|
|
|
|
try{
|
|
const urlParams = new URLSearchParams(window.location.search);
|
|
const code = urlParams.get("code");
|
|
|
|
await data.instagramTokenManager.generate(code)
|
|
|
|
document.querySelector("#code").innerText = "Authentication successful. You can close this tab";
|
|
} catch(err){
|
|
document.querySelector("#code").innerText = "Authentication failed.";
|
|
}
|
|
|
|
</script> |