@hitchy/plugin-auth 0.5.4 → 0.6.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.
- package/index.js +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -79,7 +79,7 @@ export default function( options, plugins ) { // eslint-disable-line jsdoc/requi
|
|
|
79
79
|
const { config: { auth: { prefix } } } = this;
|
|
80
80
|
|
|
81
81
|
return prefix === false ? {} : {
|
|
82
|
-
|
|
82
|
+
before: {
|
|
83
83
|
[`POST ${prefix}/login{/:strategy}`]: "user.authenticate",
|
|
84
84
|
[`GET ${prefix}/login/:strategy`]: "user.authenticate",
|
|
85
85
|
[`GET ${prefix}/current`]: "user.getCurrent",
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitchy/plugin-auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "user authentication and authorization for Hitchy",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"types": "index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"lint": "eslint .",
|
|
10
|
-
"test": "hitchy-pm session cookies odem --exec c8 -r text -r html mocha --recursive --exclude **/*.dist.js ./test/scripts --ui bdd",
|
|
10
|
+
"test": "hitchy-pm session cookies odem --exec c8 -r text -r html mocha -t 5000 --recursive --exclude **/*.dist.js ./test/scripts --ui bdd",
|
|
11
11
|
"test:smoke": "hitchy-pm session cookies odem --exec hitchy --project test/project/testbed --plugins . --plugin . --debug",
|
|
12
12
|
"docs:dev": "vitepress dev docs",
|
|
13
13
|
"docs:build": "vitepress build docs"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@hitchy/core": "1.x",
|
|
30
30
|
"@hitchy/plugin-cookies": "0.1.x",
|
|
31
|
-
"@hitchy/plugin-odem": "0.
|
|
31
|
+
"@hitchy/plugin-odem": "0.13.x",
|
|
32
32
|
"@hitchy/plugin-session": "0.4.x"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|