@cedarjs/auth-dbauth-setup 1.0.0-canary.13153 → 1.0.0-canary.13155

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.
@@ -13,10 +13,7 @@ export const handler = async (
13
13
  const forgotPasswordOptions: DbAuthHandlerOptions['forgotPassword'] = {
14
14
  // handler() is invoked after verifying that a user was found with the given
15
15
  // username. This is where you can send the user an email with a link to
16
- // reset their password. With the default dbAuth routes and field names, the
17
- // URL to reset the password will be:
18
- //
19
- // https://example.com/reset-password?resetToken=${user.resetToken}
16
+ // reset their password.
20
17
  //
21
18
  // Whatever is returned from this function will be returned from
22
19
  // the `forgotPassword()` function that is destructured from `useAuth()`.
@@ -29,9 +26,12 @@ export const handler = async (
29
26
  // `user` here has been sanitized to only include the fields listed in
30
27
  // `allowedUserFields` so it should be safe to return as-is.
31
28
  handler: (user, _resetToken) => {
32
- // TODO: Send user an email/message with a link to reset their password,
33
- // including the `resetToken`. The URL should look something like:
29
+ // TODO: Send an email/message to the user
30
+ // The message should include a link to reset their password with the
31
+ // `resetToken`. The URL should look something like:
34
32
  // `http://localhost:8910/reset-password?resetToken=${resetToken}`
33
+ // When you implement this, change `_resetToken` to `resetToken` in the
34
+ // function arguments above.
35
35
 
36
36
  return user
37
37
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/auth-dbauth-setup",
3
- "version": "1.0.0-canary.13153+665c4db0d",
3
+ "version": "1.0.0-canary.13155+41e82a960",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@babel/runtime-corejs3": "7.28.4",
28
- "@cedarjs/cli-helpers": "1.0.0-canary.13153",
28
+ "@cedarjs/cli-helpers": "1.0.0-canary.13155",
29
29
  "@prisma/internals": "6.19.1",
30
30
  "@simplewebauthn/browser": "9.0.1",
31
31
  "core-js": "3.47.0",
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "665c4db0dd61ccc0e213728dc90deec62dcc376e"
47
+ "gitHead": "41e82a96050df50f273fe4df0157b234df23f06a"
48
48
  }