@draftlab/auth 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,7 +68,7 @@ const PasskeyUI = (options) => {
68
68
  // GET authentication options from the endpoint that calls
69
69
  // @simplewebauthn/server -> generateAuthenticationOptions()
70
70
  const resp = await fetch(
71
- "/passkey/authenticate-options?userId=" + email + "&rpID=" + rpID
71
+ "./authenticate-options?userId=" + email + "&rpID=" + rpID
72
72
  );
73
73
 
74
74
  const optionsJSON = await resp.json();
@@ -88,7 +88,7 @@ const PasskeyUI = (options) => {
88
88
  }
89
89
 
90
90
  const verificationResp = await fetch(
91
- "/passkey/authenticate-verify?userId=" +
91
+ "./authenticate-verify?userId=" +
92
92
  email +
93
93
  "&rpID=" +
94
94
  rpID +
@@ -151,7 +151,7 @@ const PasskeyUI = (options) => {
151
151
  " ",
152
152
  /* @__PURE__ */ jsx("a", {
153
153
  "data-component": "link",
154
- href: "register",
154
+ href: "./register",
155
155
  children: copy.register
156
156
  })
157
157
  ] })
@@ -206,14 +206,14 @@ const PasskeyUI = (options) => {
206
206
  // GET registration options from the endpoint that calls
207
207
  // @simplewebauthn/server -> generateRegistrationOptions()
208
208
  const resp = await fetch(
209
- "/passkey/register-request?userId=" +
209
+ "./register-request?userId=" +
210
210
  email +
211
211
  "&origin=" +
212
212
  origin +
213
213
  "&rpID=" +
214
214
  rpID +
215
215
  "&otherDevice=" +
216
- otherDevice,
216
+ otherDevice
217
217
  );
218
218
  const optionsJSON = await resp.json();
219
219
 
@@ -235,7 +235,7 @@ const PasskeyUI = (options) => {
235
235
  // @simplewebauthn/server -> verifyRegistrationResponse()
236
236
  try {
237
237
  const verificationResp = await fetch(
238
- "/passkey/register-verify?userId=" +
238
+ "./register-verify?userId=" +
239
239
  email +
240
240
  "&origin=" +
241
241
  origin +
@@ -313,7 +313,7 @@ const PasskeyUI = (options) => {
313
313
  " ",
314
314
  /* @__PURE__ */ jsx("a", {
315
315
  "data-component": "link",
316
- href: "authorize",
316
+ href: "./authorize",
317
317
  children: copy.login
318
318
  })
319
319
  ] })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftlab/auth",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "Core implementation for @draftlab/auth",
6
6
  "author": "Matheus Pergoli",