Initial commit
This commit is contained in:
26
wwwroot/oauth/index.html
Normal file
26
wwwroot/oauth/index.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user