auth-vir 2.3.0 → 2.3.1

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.
@@ -204,7 +204,7 @@ export class BackendAuthClient {
204
204
  async getInsecureOrSecureUser(params) {
205
205
  const secureUser = await this.getSecureUser(params);
206
206
  if (secureUser) {
207
- return secureUser;
207
+ return { secureUser };
208
208
  }
209
209
  // eslint-disable-next-line @typescript-eslint/no-deprecated
210
210
  const insecureUser = await this.getInsecureUser(params);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth-vir",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Auth made easy and secure via JWT cookies, CSRF tokens, and password hashing helpers.",
5
5
  "keywords": [
6
6
  "auth",
@@ -482,7 +482,7 @@ export class BackendAuthClient<
482
482
  const secureUser = await this.getSecureUser(params);
483
483
 
484
484
  if (secureUser) {
485
- return secureUser;
485
+ return {secureUser};
486
486
  }
487
487
 
488
488
  // eslint-disable-next-line @typescript-eslint/no-deprecated