@lowdefy/plugin-auth0 4.7.3 → 5.1.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.
@@ -12,29 +12,22 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */
16
-
17
- function Auth0LogoutCallback({ url, baseUrl, properties }) {
18
- if (url === 'AUTH0_LOGOUT') {
19
- return `${properties.issuer}/v2/logout?returnTo=${encodeURIComponent(
20
- `${baseUrl}/${properties.returnToPagedId}`
21
- )}&client_id=${properties.clientId}`;
22
- }
23
-
24
- // next-auth default redirect callback implementation
25
- // Allows relative callback URLs
26
- if (url.startsWith('/')) {
27
- return `${baseUrl}${url}`;
28
- }
29
- // Allows callback URLs on the same origin
30
- if (new URL(url).origin === baseUrl) {
31
- return url;
32
- }
33
- return baseUrl;
15
+ */ function Auth0LogoutCallback({ url, baseUrl, properties }) {
16
+ if (url === 'AUTH0_LOGOUT') {
17
+ return `${properties.issuer}/v2/logout?returnTo=${encodeURIComponent(`${baseUrl}/${properties.returnToPagedId}`)}&client_id=${properties.clientId}`;
18
+ }
19
+ // next-auth default redirect callback implementation
20
+ // Allows relative callback URLs
21
+ if (url.startsWith('/')) {
22
+ return `${baseUrl}${url}`;
23
+ }
24
+ // Allows callback URLs on the same origin
25
+ if (new URL(url).origin === baseUrl) {
26
+ return url;
27
+ }
28
+ return baseUrl;
34
29
  }
35
-
36
30
  Auth0LogoutCallback.meta = {
37
- type: 'redirect',
31
+ type: 'redirect'
38
32
  };
39
-
40
33
  export default Auth0LogoutCallback;
@@ -12,6 +12,4 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */
16
-
17
- export { default as Auth0LogoutCallback } from './callbacks/Auth0LogoutCallback.js';
15
+ */ export { default as Auth0LogoutCallback } from './callbacks/Auth0LogoutCallback.js';
@@ -12,12 +12,10 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */
16
-
17
- import * as callbacks from './auth/callbacks.js';
18
-
19
- export default {
20
- auth: {
21
- callbacks: Object.keys(callbacks),
22
- },
15
+ */ export default {
16
+ auth: {
17
+ callbacks: [
18
+ 'Auth0LogoutCallback'
19
+ ]
20
+ }
23
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/plugin-auth0",
3
- "version": "4.7.3",
3
+ "version": "5.1.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -28,23 +28,24 @@
28
28
  },
29
29
  "type": "module",
30
30
  "exports": {
31
- "./auth/callbacks": "./auth/callbacks.js",
32
- "./types": "./types.js"
31
+ "./auth/callbacks": "./dist/auth/callbacks.js",
32
+ "./types": "./dist/types.js"
33
33
  },
34
34
  "files": [
35
- "*"
35
+ "dist/*"
36
36
  ],
37
37
  "devDependencies": {
38
- "@swc/cli": "0.1.63",
39
- "@swc/core": "1.3.99",
40
- "@swc/jest": "0.2.29",
38
+ "@lowdefy/node-utils": "5.1.0",
39
+ "@swc/cli": "0.8.0",
40
+ "@swc/core": "1.15.18",
41
+ "@swc/jest": "0.2.39",
41
42
  "jest": "28.1.3"
42
43
  },
43
44
  "publishConfig": {
44
45
  "access": "public"
45
46
  },
46
47
  "scripts": {
47
- "build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
48
+ "build": "swc src --out-dir dist --config-file ../../../../.swcrc --cli-config-file ../../../../.swc-cli.json --copy-files",
48
49
  "clean": "rm -rf dist"
49
50
  }
50
51
  }
package/CHANGELOG.md DELETED
@@ -1,158 +0,0 @@
1
- # Change Log
2
-
3
- ## 4.7.3
4
-
5
- ## 4.7.2
6
-
7
- ## 4.7.1
8
-
9
- ## 4.7.0
10
-
11
- ## 4.6.0
12
-
13
- ## 4.5.2
14
-
15
- ## 4.5.1
16
-
17
- ## 4.5.0
18
-
19
- ## 4.4.0
20
-
21
- ## 4.3.2
22
-
23
- ## 4.3.1
24
-
25
- ## 4.3.0
26
-
27
- ## 4.2.2
28
-
29
- ## 4.2.1
30
-
31
- ### Patch Changes
32
-
33
- - a1f47d97c: Fix Github actions release.
34
-
35
- ## 4.2.0
36
-
37
- ## 4.1.0
38
-
39
- ## 4.0.2
40
-
41
- ## 4.0.1
42
-
43
- ## 4.0.0
44
-
45
- All notable changes to this project will be documented in this file.
46
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
47
-
48
- # [4.0.0-rc.15](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.14...v4.0.0-rc.15) (2023-12-05)
49
-
50
- **Note:** Version bump only for package @lowdefy/plugin-auth0
51
-
52
- # [4.0.0-rc.14](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.12...v4.0.0-rc.14) (2023-11-17)
53
-
54
- **Note:** Version bump only for package @lowdefy/plugin-auth0
55
-
56
- # [4.0.0-rc.13](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.12...v4.0.0-rc.13) (2023-11-17)
57
-
58
- **Note:** Version bump only for package @lowdefy/plugin-auth0
59
-
60
- # [4.0.0-rc.12](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.11...v4.0.0-rc.12) (2023-10-19)
61
-
62
- **Note:** Version bump only for package @lowdefy/plugin-auth0
63
-
64
- # [4.0.0-rc.11](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.10...v4.0.0-rc.11) (2023-10-06)
65
-
66
- ### Bug Fixes
67
-
68
- - **deps:** Dependencies patch updates. ([adcd80a](https://github.com/lowdefy/lowdefy/commit/adcd80afe8c752e15c900b88eb4d9be8526c7bcd))
69
-
70
- # [4.0.0-rc.10](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.9...v4.0.0-rc.10) (2023-07-26)
71
-
72
- **Note:** Version bump only for package @lowdefy/plugin-auth0
73
-
74
- # [4.0.0-rc.9](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.8...v4.0.0-rc.9) (2023-05-31)
75
-
76
- **Note:** Version bump only for package @lowdefy/plugin-auth0
77
-
78
- # [4.0.0-rc.8](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.7...v4.0.0-rc.8) (2023-05-19)
79
-
80
- **Note:** Version bump only for package @lowdefy/plugin-auth0
81
-
82
- # [4.0.0-rc.7](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.6...v4.0.0-rc.7) (2023-03-24)
83
-
84
- **Note:** Version bump only for package @lowdefy/plugin-auth0
85
-
86
- # [4.0.0-rc.6](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.5...v4.0.0-rc.6) (2023-03-20)
87
-
88
- **Note:** Version bump only for package @lowdefy/plugin-auth0
89
-
90
- # [4.0.0-rc.5](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.4...v4.0.0-rc.5) (2023-02-24)
91
-
92
- **Note:** Version bump only for package @lowdefy/plugin-auth0
93
-
94
- # [4.0.0-rc.4](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.3...v4.0.0-rc.4) (2023-02-21)
95
-
96
- **Note:** Version bump only for package @lowdefy/plugin-auth0
97
-
98
- # [4.0.0-rc.3](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.2...v4.0.0-rc.3) (2023-02-21)
99
-
100
- **Note:** Version bump only for package @lowdefy/plugin-auth0
101
-
102
- # [4.0.0-rc.2](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.1...v4.0.0-rc.2) (2023-02-17)
103
-
104
- **Note:** Version bump only for package @lowdefy/plugin-auth0
105
-
106
- # [4.0.0-rc.1](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.0...v4.0.0-rc.1) (2023-02-17)
107
-
108
- **Note:** Version bump only for package @lowdefy/plugin-auth0
109
-
110
- # [4.0.0-rc.0](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.37...v4.0.0-rc.0) (2023-01-05)
111
-
112
- **Note:** Version bump only for package @lowdefy/plugin-auth0
113
-
114
- # [4.0.0-alpha.37](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.36...v4.0.0-alpha.37) (2022-12-07)
115
-
116
- **Note:** Version bump only for package @lowdefy/plugin-auth0
117
-
118
- # [4.0.0-alpha.36](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.35...v4.0.0-alpha.36) (2022-10-14)
119
-
120
- **Note:** Version bump only for package @lowdefy/plugin-auth0
121
-
122
- # [4.0.0-alpha.35](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.34...v4.0.0-alpha.35) (2022-10-05)
123
-
124
- **Note:** Version bump only for package @lowdefy/plugin-auth0
125
-
126
- # [4.0.0-alpha.34](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.33...v4.0.0-alpha.34) (2022-09-30)
127
-
128
- **Note:** Version bump only for package @lowdefy/plugin-auth0
129
-
130
- # [4.0.0-alpha.33](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.32...v4.0.0-alpha.33) (2022-09-22)
131
-
132
- **Note:** Version bump only for package @lowdefy/plugin-auth0
133
-
134
- # [4.0.0-alpha.32](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.31...v4.0.0-alpha.32) (2022-09-22)
135
-
136
- **Note:** Version bump only for package @lowdefy/plugin-auth0
137
-
138
- # [4.0.0-alpha.31](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.30...v4.0.0-alpha.31) (2022-09-21)
139
-
140
- **Note:** Version bump only for package @lowdefy/plugin-auth0
141
-
142
- # [4.0.0-alpha.30](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.29...v4.0.0-alpha.30) (2022-09-17)
143
-
144
- **Note:** Version bump only for package @lowdefy/plugin-auth0
145
-
146
- # [4.0.0-alpha.29](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.28...v4.0.0-alpha.29) (2022-09-13)
147
-
148
- **Note:** Version bump only for package @lowdefy/plugin-auth0
149
-
150
- # [4.0.0-alpha.28](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.27...v4.0.0-alpha.28) (2022-09-12)
151
-
152
- **Note:** Version bump only for package @lowdefy/plugin-auth0
153
-
154
- # [4.0.0-alpha.27](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.26...v4.0.0-alpha.27) (2022-09-08)
155
-
156
- ### Features
157
-
158
- - **plugins:** Add plugin-auth0. ([10a6206](https://github.com/lowdefy/lowdefy/commit/10a6206f93bf5a78e90b5c3659a64bc08132bdc1))