next-auth-heksso 1.1.13 → 1.2.0

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.

Potentially problematic release.


This version of next-auth-heksso might be problematic. Click here for more details.

package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Next-Auth config for use with HEKsso (Keycloak)
2
2
 
3
- The rollowing environment variables are required:
3
+ The following environment variables are required:
4
4
 
5
5
  NEXTAUTH_SECRET
6
6
  NEXTAUTH_URL
@@ -1,8 +1,7 @@
1
1
  import { NextApiRequest, NextApiResponse } from "next";
2
2
  /**
3
3
  * Provides a next api route for performing a federated logout of the user (logs ouf of keycloak)
4
- * @param req NextApiRequest
5
- * @param res NextApiRequest
4
+ * @param logoutPath Post redirect URI
6
5
  * @returns
7
6
  */
8
7
  export declare function federatedLogout(logoutPath: string): (req: NextApiRequest, res: NextApiResponse) => Promise<NextApiResponse<any> | undefined>;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
36
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
37
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -36,8 +46,7 @@ exports.federatedLogout = federatedLogout;
36
46
  const jwt = __importStar(require("next-auth/jwt"));
37
47
  /**
38
48
  * Provides a next api route for performing a federated logout of the user (logs ouf of keycloak)
39
- * @param req NextApiRequest
40
- * @param res NextApiRequest
49
+ * @param logoutPath Post redirect URI
41
50
  * @returns
42
51
  */
43
52
  function federatedLogout(logoutPath) {
package/package.json CHANGED
@@ -5,10 +5,11 @@
5
5
  "email": "contact@voakie.com"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "1.1.13",
8
+ "version": "1.2.0",
9
+ "type": "module",
9
10
  "scripts": {
10
11
  "prepublish": "run-script-os",
11
- "prepublish:default": "rm api/ -rf && rm react/ -rf && tsc",
12
+ "prepublish:default": "rm -rf api/ && rm -rf react/ && tsc",
12
13
  "prepublish:windows": "del /s /q api && del /s /q react",
13
14
  "build": "tsc",
14
15
  "clean": "run-script-os",
@@ -18,18 +19,21 @@
18
19
  "main": "api/index.js",
19
20
  "types": "api/index.d.ts",
20
21
  "dependencies": {
21
- "@types/node": "^22.8.1",
22
- "@types/react": "^18.3.12",
23
- "@types/react-dom": "^18.3.1",
22
+
23
+ },
24
+ "devDependencies": {
25
+ "run-script-os": "^1.1.6",
26
+ "@types/node": "^24",
27
+ "@types/react": "^19",
28
+ "@types/react-dom": "^19",
24
29
  "eslint": "^9.13.0",
25
- "eslint-config-next": "^15.0.1",
26
- "next": "^15.0.1",
27
- "next-auth": "^4.24.10",
28
- "react": "^18.3.1",
29
- "react-dom": "^18.3.1",
30
+ "eslint-config-next": "^16",
30
31
  "typescript": "^5.6.3"
31
32
  },
32
- "devDependencies": {
33
- "run-script-os": "^1.1.6"
33
+ "peerDependencies": {
34
+ "next": "^15 || ^16",
35
+ "next-auth": "^4",
36
+ "react": "^18 || ^19",
37
+ "react-dom": "^18 || ^19"
34
38
  }
35
39
  }
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
36
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
37
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -4,8 +4,7 @@ import * as jwt from "next-auth/jwt"
4
4
 
5
5
  /**
6
6
  * Provides a next api route for performing a federated logout of the user (logs ouf of keycloak)
7
- * @param req NextApiRequest
8
- * @param res NextApiRequest
7
+ * @param logoutPath Post redirect URI
9
8
  * @returns
10
9
  */
11
10
  export function federatedLogout(logoutPath: string) {