zyket 1.1.8 → 1.1.9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zyket",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -40,6 +40,10 @@ module.exports = class AuthService extends Service {
40
40
  return {};
41
41
  }
42
42
 
43
+ get hooks() {
44
+ return {};
45
+ }
46
+
43
47
  async sendResetPasswordEmail({ user, url, token }, request) {
44
48
  throw new Error("sendResetPasswordEmail method not implemented");
45
49
  }
@@ -59,6 +63,7 @@ module.exports = class AuthService extends Service {
59
63
  get auth() {
60
64
  const cache = this.#container.get('cache');
61
65
  return betterAuth({
66
+ hooks: this.hooks,
62
67
  plugins: [
63
68
  admin(),
64
69
  bearer(),