diff options
Diffstat (limited to 'templates/index.tpl')
-rw-r--r-- | templates/index.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/index.tpl b/templates/index.tpl index 2a5e853..98ca31a 100644 --- a/templates/index.tpl +++ b/templates/index.tpl | |||
@@ -179,7 +179,7 @@ | |||
179 | } | 179 | } |
180 | 180 | ||
181 | function populateAPIKey() { | 181 | function populateAPIKey() { |
182 | document.querySelector("#api-key textarea").innerText = "Bearer " + getCookie("github-token"); | 182 | document.querySelector("#api-key textarea").innerText = getCookie("github-token"); |
183 | document.querySelector("#session-expires").innerText = parseJWTExpires(getCookie("github-token")); | 183 | document.querySelector("#session-expires").innerText = parseJWTExpires(getCookie("github-token")); |
184 | } | 184 | } |
185 | 185 | ||
@@ -200,7 +200,7 @@ | |||
200 | 200 | ||
201 | <h1>API Key</h1> | 201 | <h1>API Key</h1> |
202 | <div id="api-key"> | 202 | <div id="api-key"> |
203 | <p>To access <a href="/api/account">the API</a> set the value of <tt>Authorization</tt> header to:</p> | 203 | <p>To access <a href="/api/account">the API</a> set the header <tt>Authorization: Bearer {token}</tt> to the token below:</p> |
204 | <textarea>Bearer {token}</textarea> | 204 | <textarea>Bearer {token}</textarea> |
205 | <p><b>Token Expires:</b> <span id="session-expires"></span></p> | 205 | <p><b>Token Expires:</b> <span id="session-expires"></span></p> |
206 | </div> | 206 | </div> |