summaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/README.md4
-rw-r--r--example/index.js10
-rw-r--r--example/package-lock.json10
-rw-r--r--example/package.json2
-rw-r--r--example/public/index.html4
-rw-r--r--example/public/login/index.html6
-rw-r--r--example/public/register/index.html6
7 files changed, 21 insertions, 21 deletions
diff --git a/example/README.md b/example/README.md
index 1154d77..4b53d81 100644
--- a/example/README.md
+++ b/example/README.md
@@ -1,6 +1,6 @@
-# WebAuthntine Example
+# SimpleWebAuthn Example
-A fully-functional reference implementation of [@webauthntine/server](../packages/server) and [@webauthntine/browser](../packages/browser).
+A fully-functional reference implementation of [@simplewebauthn/server](../packages/server) and [@simplewebauthn/browser](../packages/browser).
## Requirements
diff --git a/example/index.js b/example/index.js
index a76b297..188a484 100644
--- a/example/index.js
+++ b/example/index.js
@@ -1,8 +1,8 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/**
- * An example Express server showing off a simple integration of @webauthntine/server.
+ * An example Express server showing off a simple integration of @simplewebauthn/server.
*
- * The webpages served from ./public use @webauthntine/browser.
+ * The webpages served from ./public use @simplewebauthn/browser.
*/
const https = require('https');
const fs = require('fs');
@@ -16,7 +16,7 @@ const {
// Login ("Assertion")
generateAssertionOptions,
verifyAssertionResponse,
-} = require('@webauthntine/server');
+} = require('@simplewebauthn/server');
const app = express();
const host = '0.0.0.0';
@@ -39,7 +39,7 @@ const origin = `https://${rpID}`;
*
* Here, the example server assumes the following user has completed login:
*/
-const loggedInUserId = 'webauthntineInternalUserId';
+const loggedInUserId = 'internalUserId';
/**
* You'll need a database to store a few things:
@@ -117,7 +117,7 @@ app.get('/generate-attestation-options', (req, res) => {
res.send(
generateAttestationOptions(
- 'WebAuthntine Example',
+ 'SimpleWebAuthn Example',
rpID,
challenge,
loggedInUserId,
diff --git a/example/package-lock.json b/example/package-lock.json
index 1d0ba9b..c5557f6 100644
--- a/example/package-lock.json
+++ b/example/package-lock.json
@@ -25,12 +25,12 @@
"integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==",
"dev": true
},
- "@webauthntine/server": {
+ "@simplewebauthn/server": {
"version": "0.2.3",
- "resolved": "https://registry.npmjs.org/@webauthntine/server/-/server-0.2.3.tgz",
+ "resolved": "https://registry.npmjs.org/@simplewebauthn/server/-/server-0.2.3.tgz",
"integrity": "sha512-/UJ1irJUsaH7dRccl7VtV0dclE359vBORUxMqyzO7WrcVOmi49ihbuCOzpjF4CPT+hIszFEzYqKPwrjFkkzIPg==",
"requires": {
- "@webauthntine/typescript-types": "^0.2.3",
+ "@simplewebauthn/typescript-types": "^0.2.3",
"base64url": "^3.0.1",
"cbor": "^5.0.2",
"elliptic": "^6.5.2",
@@ -38,9 +38,9 @@
"node-rsa": "^1.0.8"
}
},
- "@webauthntine/typescript-types": {
+ "@simplewebauthn/typescript-types": {
"version": "0.2.3",
- "resolved": "https://registry.npmjs.org/@webauthntine/typescript-types/-/typescript-types-0.2.3.tgz",
+ "resolved": "https://registry.npmjs.org/@simplewebauthn/typescript-types/-/typescript-types-0.2.3.tgz",
"integrity": "sha512-GA7vTKY0sFaLE7dOKrtcs32EDM64exah+cMZO959gozZhRconH9s4qVccSqF+aInLkdh3tveqFTlWisKS95ymQ=="
},
"abbrev": {
diff --git a/example/package.json b/example/package.json
index c8e92ed..1f3de29 100644
--- a/example/package.json
+++ b/example/package.json
@@ -10,7 +10,7 @@
"author": "",
"license": "ISC",
"dependencies": {
- "@webauthntine/server": "^0.2.3",
+ "@simplewebauthn/server": "^0.2.3",
"express": "^4.17.1"
},
"devDependencies": {
diff --git a/example/public/index.html b/example/public/index.html
index e313ba7..f7f3df5 100644
--- a/example/public/index.html
+++ b/example/public/index.html
@@ -4,11 +4,11 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./styles.css" />
- <title>WebAuthntine Example Site</title>
+ <title>SimpleWebAuthn Example Site</title>
</head>
<body>
<div class="container">
- <h1>WebAuthntine Example Site</h1>
+ <h1>SimpleWebAuthn Example Site</h1>
<p>🚪&nbsp;<a href="/register">Register</a></p>
<p>🔐&nbsp;<a href="/login">Login</a></p>
</div>
diff --git a/example/public/login/index.html b/example/public/login/index.html
index 9bdeeb1..f07afe0 100644
--- a/example/public/login/index.html
+++ b/example/public/login/index.html
@@ -3,9 +3,9 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <script src="https://unpkg.com/@webauthntine/browser@0.2.3/dist/webauthntine-browser.min.js"></script>
+ <script src="https://unpkg.com/@simplewebauthn/browser@0.2.3/dist/simplewebauthn-browser.min.js"></script>
<link rel="stylesheet" href="../styles.css" />
- <title>WebAuthntine Example Site | Login</title>
+ <title>SimpleWebAuthn Example Site | Login</title>
</head>
<body>
<div class="container">
@@ -23,7 +23,7 @@
const elemSuccess = document.getElementById('success');
const elemError = document.getElementById('error');
- const { startAssertion } = WebAuthntineBrowser;
+ const { startAssertion } = SimpleWebAuthnBrowser;
elemBegin.addEventListener('click', async () => {
// Reset success/error messages
diff --git a/example/public/register/index.html b/example/public/register/index.html
index d4c8074..9460f3c 100644
--- a/example/public/register/index.html
+++ b/example/public/register/index.html
@@ -3,9 +3,9 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <script src="https://unpkg.com/@webauthntine/browser@0.2.3/dist/webauthntine-browser.min.js"></script>
+ <script src="https://unpkg.com/@simplewebauthn/browser@0.2.3/dist/simplewebauthn-browser.min.js"></script>
<link rel="stylesheet" href="../styles.css" />
- <title>WebAuthntine Example Site | Register</title>
+ <title>SimpleWebAuthn Example Site | Register</title>
</head>
<body>
<div class="container">
@@ -23,7 +23,7 @@
const elemSuccess = document.getElementById('success');
const elemError = document.getElementById('error');
- const { startAttestation } = WebAuthntineBrowser;
+ const { startAttestation } = SimpleWebAuthnBrowser;
elemBegin.addEventListener('click', async () => {
// Reset success/error messages