Skip to content

Commit 781bdd6

Browse files
ComputerEliteComputerElite
authored andcommitted
add back token login
1 parent 82111aa commit 781bdd6

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Assets/html/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@
9999
<div class="button" id="login">Login</div>
100100
<div class="buttonLabel">Log in with your Oculus/Facebook account to downgrade games (<b>ONLY WORKS ON QUEST, NOT ON PC</b>)</div>
101101
</div>
102+
<div class="buttonContainer">
103+
<input type="password" id="tokeninput" placeholder="Token">
104+
<div class="button" id="logintoken">Login with token</div>
105+
<div class="buttonLabel">Log in with your Oculus token to downgrade games (Open this page on PC or phone to paste your token; Tipe the link at the bottom in your browser)</div>
106+
</div>
107+
<a href="https://computerelite.github.io/tools/Oculus/ObtainToken.html">Guide to get your token</a>
102108
<div id="tokenTextBox" class="textBox"></div>
103109
</div>
104110

@@ -323,6 +329,10 @@
323329
document.getElementById("onPcInfo").classList.remove("hidden")
324330
}
325331

332+
document.getElementById("logintoken").onclick = () => {
333+
location = `?token=${document.getElementById("tokeninput").value}`
334+
}
335+
326336
UpdateUI()
327337
TokenUIUpdate()
328338
const oculusLink = "https://auth.oculus.com/login/?redirect_uri=https%3A%2F%2Fsecure.oculus.com%2F&reason=page_require_login"

Assets/html/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ code {
228228
background-color: #1F1F1F;
229229
}
230230

231+
a {
232+
color: #5689f7;
233+
}
234+
231235
.darken {
232236
background-color: #00000055;
233237
}

0 commit comments

Comments
 (0)