Get client id and url prefix from config in main.eta
This commit is contained in:
parent
bf89c6956d
commit
18ff4c9d1f
2 changed files with 11 additions and 3 deletions
|
@ -15,7 +15,7 @@
|
|||
<div id="nav-username"><%= it.userName %></div>
|
||||
<div id="nav-logout"><a href="/logout">Logout</a></div>
|
||||
<%- } else { // Not logged in -%>
|
||||
<div id="nav-login"><a href="https://id.twitch.tv/oauth2/authorize?client_id=di37tc1dr9rhvmpvzgn8rkmi7bdhkk&redirect_uri=https://localhost/callback&response_type=code">Login</a></div>
|
||||
<div id="nav-login"><a href="https://id.twitch.tv/oauth2/authorize?client_id=<%=it.clientId%>&redirect_uri=<%=it.urlPrefix%>/callback&response_type=code">Login</a></div>
|
||||
<%- } %>
|
||||
</div>
|
||||
<div id="main">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue