session-sync-auth-site 4.0.4 → 4.0.5
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 +2 -2
- package/package.json +1 -5
package/README.md
CHANGED
|
@@ -12,9 +12,9 @@ You may add on more fields to the user and session tables, if you like.
|
|
|
12
12
|
import express from 'express'
|
|
13
13
|
import cors from 'cors'
|
|
14
14
|
import bodyParser from 'body-parser'
|
|
15
|
+
import authenticate, setUpSessionSyncAuthRoutes from 'session-sync-auth-site'
|
|
15
16
|
|
|
16
17
|
const app = express()
|
|
17
|
-
const { authenticate, setUpSessionSyncAuthRoutes } = require('session-sync-auth-site')
|
|
18
18
|
|
|
19
19
|
app.use(cors())
|
|
20
20
|
app.use(bodyParser.json())
|
|
@@ -110,7 +110,7 @@ setUpSessionSyncAuthRoutes({
|
|
|
110
110
|
## Admin backend functions
|
|
111
111
|
|
|
112
112
|
```js
|
|
113
|
-
|
|
113
|
+
import createUser, getLoginLink, updateUserAccount, deleteUser from 'session-sync-auth-site'
|
|
114
114
|
|
|
115
115
|
app.post(`create-user`, (req, res, next) => {
|
|
116
116
|
// first check that user is admin with permission to do this
|
package/package.json
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "session-sync-auth-site",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": "./src/index.js",
|
|
9
|
-
"./src/sessionSyncAuthFrontend": "./src/sessionSyncAuthFrontend.js"
|
|
10
|
-
},
|
|
11
7
|
"repository": {
|
|
12
8
|
"type": "git",
|
|
13
9
|
"url": "git+https://github.com/educational-resources-and-services/session-sync-auth-site.git"
|