Skip to content

Commit

Permalink
chore: upgrade simplewebauthn dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
authcompanion committed Sep 10, 2023
1 parent cfe2d8d commit cead00e
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 57 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"license": "Big Time Public License",
"dependencies": {
"@paralleldrive/cuid2": "^2.2.2",
"@simplewebauthn/server": "^7.4.0",
"@simplewebauthn/server": "^8.1.1",
"argon2": "^0.31.1",
"better-sqlite3": "^8.6.0",
"compadre": "^3.2.0",
"cookie": "^0.5.0",
"dotenv": "^16.3.1",
"emailjs": "^4.0.2",
"emailjs": "^4.0.3",
"fastify": "^4.22.2",
"fastify-plugin": "^4.5.1",
"jose": "^4.14.6"
Expand Down
73 changes: 23 additions & 50 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/webAuthn/loginOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const loginOptionsHandler = async function (request, reply) {
};

//generate options
const generatedOptions = generateAuthenticationOptions(opts);
const generatedOptions = await generateAuthenticationOptions(opts);

//fetch cookies (we'll need session id. session id is set on page load in ui.routes.js)
const cookies = parse(request.headers.cookie);
Expand Down
2 changes: 1 addition & 1 deletion services/webAuthn/registrationOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const registrationOptionsHandler = async function (request, reply) {
};

//generate registration options to prepare the response
const generatedOptions = generateRegistrationOptions(options);
const generatedOptions = await generateRegistrationOptions(options);

//Generate user data and create user in database
//build jwtid
Expand Down
2 changes: 1 addition & 1 deletion ui/admin/loginAdminPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
href="https://cdn.jsdelivr.net/npm/@unocss/reset/tailwind.min.css"
/>
<script src="https://cdn.jsdelivr.net/npm/@unocss/runtime/uno.global.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@simplewebauthn/browser@7.0.0/dist/bundle/index.es5.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@simplewebauthn/browser@8.0.2/dist/bundle/index.es5.umd.min.js"></script>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
<style>
html {
Expand Down
2 changes: 1 addition & 1 deletion ui/auth/loginPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
href="https://cdn.jsdelivr.net/npm/@unocss/reset/tailwind.min.css"
/>
<script src="https://cdn.jsdelivr.net/npm/@unocss/runtime/uno.global.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@simplewebauthn/browser@7.0.0/dist/bundle/index.es5.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@simplewebauthn/browser@8.0.2/dist/bundle/index.es5.umd.min.js"></script>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
<style>
html {
Expand Down
2 changes: 1 addition & 1 deletion ui/auth/registrationPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
href="https://cdn.jsdelivr.net/npm/@unocss/reset/tailwind.min.css"
/>
<script src="https://cdn.jsdelivr.net/npm/@unocss/runtime/uno.global.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@simplewebauthn/browser@7.0.0/dist/bundle/index.es5.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@simplewebauthn/browser@8.0.2/dist/bundle/index.es5.umd.min.js"></script>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
<style>
html {
Expand Down

0 comments on commit cead00e

Please sign in to comment.