@stacksjs/auth 0.70.163 → 0.70.164

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/README.md CHANGED
@@ -50,7 +50,7 @@ For help, discussion about best practices, or any other conversation that would
50
50
 
51
51
  For casual chit-chat with others using this package:
52
52
 
53
- [Join the Stacks Discord Server](https://discord.gg/stacksjs)
53
+ [Join the Stacks Discord Server](https://stacksjs.com/discord)
54
54
 
55
55
  ## 📄 License
56
56
 
package/dist/user.d.ts CHANGED
@@ -15,11 +15,6 @@ import type { UserModel as OrmUserModel } from '@stacksjs/orm';
15
15
  * }
16
16
  */
17
17
  export declare function authUser(): Promise<UserModel | undefined>;
18
- /**
19
- * Alias for authUser() - for backwards compatibility
20
- * @deprecated Use authUser() instead
21
- */
22
- export declare function getCurrentUser(): Promise<UserModel | undefined>;
23
18
  export declare function check(): Promise<boolean>;
24
19
  export declare function id(): Promise<number | undefined>;
25
20
  export declare function email(): Promise<string | undefined>;
package/dist/user.js CHANGED
@@ -14,9 +14,6 @@ export async function authUser() {
14
14
  return;
15
15
  return await Auth.getUserFromToken(token);
16
16
  }
17
- export async function getCurrentUser() {
18
- return authUser();
19
- }
20
17
  export async function check() {
21
18
  return !!await authUser();
22
19
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/auth",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.163",
5
+ "version": "0.70.164",
6
6
  "description": "A more simplistic way to authenticate.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "better-dx": "^0.2.17",
59
- "@stacksjs/error-handling": "0.70.163",
60
- "@stacksjs/router": "0.70.163"
59
+ "@stacksjs/error-handling": "0.70.164",
60
+ "@stacksjs/router": "0.70.164"
61
61
  }
62
62
  }