Skip to content

Commit

Permalink
Webauthn: new path prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Mar 24, 2022
1 parent 7a24d9e commit caa68b6
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Login</title>
<script src="/webauthn/webauthn.js" type="text/javascript" charset="UTF-8"></script>
<script src="/q/webauthn/webauthn.js" type="text/javascript" charset="UTF-8"></script>
<style>
.container {
display: grid;
Expand Down Expand Up @@ -47,7 +47,7 @@
<li><a href="/api/public">Public API</a></li>
<li><a href="/api/users/me">User API</a></li>
<li><a href="/api/admin">Admin API</a></li>
<li><a href="/webauthn/logout">Logout</a></li>
<li><a href="/q/webauthn/logout">Logout</a></li>
</nav>
<div class="container">
<div class="item">
Expand All @@ -73,9 +73,9 @@ <h1>Register</h1>
</div>
<script type="text/javascript">
const webAuthn = new WebAuthn({
callbackPath: '/webauthn/callback',
registerPath: '/webauthn/register',
loginPath: '/webauthn/login'
callbackPath: '/q/webauthn/callback',
registerPath: '/q/webauthn/register',
loginPath: '/q/webauthn/login'
});

const result = document.getElementById('result');
Expand Down

0 comments on commit caa68b6

Please sign in to comment.