├── .postman_collection.json ├── config.js ├── index.js ├── package-lock.json ├── package.json └── readme.md /.postman_collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "a46bf803-b86e-4b5c-a8bb-0c5486e59de9", 4 | "name": "REST API Authentication and Authorization", 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", 6 | "_exporter_id": "26236575" 7 | }, 8 | "item": [ 9 | { 10 | "name": "Register", 11 | "request": { 12 | "method": "POST", 13 | "header": [], 14 | "body": { 15 | "mode": "raw", 16 | "raw": "{\n \"name\": \"John Doe\",\n \"email\": \"jd@domain.com\",\n \"password\": \"123456\",\n \"role\": \"admin\"\n}", 17 | "options": { 18 | "raw": { 19 | "language": "json" 20 | } 21 | } 22 | }, 23 | "url": { 24 | "raw": "localhost:3000/api/auth/register", 25 | "host": [ 26 | "localhost" 27 | ], 28 | "port": "3000", 29 | "path": [ 30 | "api", 31 | "auth", 32 | "register" 33 | ] 34 | } 35 | }, 36 | "response": [] 37 | }, 38 | { 39 | "name": "Login", 40 | "request": { 41 | "method": "POST", 42 | "header": [], 43 | "body": { 44 | "mode": "raw", 45 | "raw": "{\n \"email\": \"jd@domain.com\",\n \"password\": \"123456\"\n}", 46 | "options": { 47 | "raw": { 48 | "language": "json" 49 | } 50 | } 51 | }, 52 | "url": { 53 | "raw": "localhost:3000/api/auth/login", 54 | "host": [ 55 | "localhost" 56 | ], 57 | "port": "3000", 58 | "path": [ 59 | "api", 60 | "auth", 61 | "login" 62 | ] 63 | } 64 | }, 65 | "response": [] 66 | }, 67 | { 68 | "name": "Current User", 69 | "request": { 70 | "method": "GET", 71 | "header": [ 72 | { 73 | "key": "Authorization", 74 | "value": "access_token", 75 | "type": "text" 76 | } 77 | ], 78 | "url": { 79 | "raw": "localhost:3000/api/users/current", 80 | "host": [ 81 | "localhost" 82 | ], 83 | "port": "3000", 84 | "path": [ 85 | "api", 86 | "users", 87 | "current" 88 | ] 89 | } 90 | }, 91 | "response": [] 92 | }, 93 | { 94 | "name": "Moderator", 95 | "request": { 96 | "method": "GET", 97 | "header": [ 98 | { 99 | "key": "Authorization", 100 | "value": "access_token", 101 | "type": "text" 102 | } 103 | ], 104 | "url": { 105 | "raw": "localhost:3000/api/moderator", 106 | "host": [ 107 | "localhost" 108 | ], 109 | "port": "3000", 110 | "path": [ 111 | "api", 112 | "moderator" 113 | ] 114 | } 115 | }, 116 | "response": [] 117 | }, 118 | { 119 | "name": "Admin", 120 | "request": { 121 | "method": "GET", 122 | "header": [ 123 | { 124 | "key": "Authorization", 125 | "value": "access_token", 126 | "type": "text" 127 | } 128 | ], 129 | "url": { 130 | "raw": "localhost:3000/api/admin", 131 | "host": [ 132 | "localhost" 133 | ], 134 | "port": "3000", 135 | "path": [ 136 | "api", 137 | "admin" 138 | ] 139 | } 140 | }, 141 | "response": [] 142 | }, 143 | { 144 | "name": "Refresh Token", 145 | "request": { 146 | "method": "POST", 147 | "header": [], 148 | "body": { 149 | "mode": "raw", 150 | "raw": "{\n \"refreshToken\": \"refresh_token\"\n}", 151 | "options": { 152 | "raw": { 153 | "language": "json" 154 | } 155 | } 156 | }, 157 | "url": { 158 | "raw": "localhost:3000/api/auth/refresh-token", 159 | "host": [ 160 | "localhost" 161 | ], 162 | "port": "3000", 163 | "path": [ 164 | "api", 165 | "auth", 166 | "refresh-token" 167 | ] 168 | } 169 | }, 170 | "response": [] 171 | }, 172 | { 173 | "name": "Logout", 174 | "request": { 175 | "method": "GET", 176 | "header": [ 177 | { 178 | "key": "Authorization", 179 | "value": "access_token", 180 | "type": "text" 181 | } 182 | ], 183 | "url": { 184 | "raw": "localhost:3000/api/auth/logout", 185 | "host": [ 186 | "localhost" 187 | ], 188 | "port": "3000", 189 | "path": [ 190 | "api", 191 | "auth", 192 | "logout" 193 | ] 194 | } 195 | }, 196 | "response": [] 197 | }, 198 | { 199 | "name": "Generate QRCode", 200 | "request": { 201 | "method": "GET", 202 | "header": [ 203 | { 204 | "key": "Authorization", 205 | "value": "access_token", 206 | "type": "text" 207 | } 208 | ], 209 | "url": { 210 | "raw": "localhost:3000/api/auth/2fa/generate", 211 | "host": [ 212 | "localhost" 213 | ], 214 | "port": "3000", 215 | "path": [ 216 | "api", 217 | "auth", 218 | "2fa", 219 | "generate" 220 | ] 221 | } 222 | }, 223 | "response": [] 224 | }, 225 | { 226 | "name": "Validate/Enable 2FA", 227 | "request": { 228 | "method": "POST", 229 | "header": [ 230 | { 231 | "key": "Authorization", 232 | "value": "access_token", 233 | "type": "text" 234 | } 235 | ], 236 | "body": { 237 | "mode": "raw", 238 | "raw": "{\n \"totp\": \"totp\"\n}", 239 | "options": { 240 | "raw": { 241 | "language": "json" 242 | } 243 | } 244 | }, 245 | "url": { 246 | "raw": "localhost:3000/api/auth/2fa/validate", 247 | "host": [ 248 | "localhost" 249 | ], 250 | "port": "3000", 251 | "path": [ 252 | "api", 253 | "auth", 254 | "2fa", 255 | "validate" 256 | ] 257 | } 258 | }, 259 | "response": [] 260 | }, 261 | { 262 | "name": "Login-2FA", 263 | "request": { 264 | "method": "POST", 265 | "header": [], 266 | "body": { 267 | "mode": "raw", 268 | "raw": "{\n \"tempToken\": \"temp_token\",\n \"totp\": \"totp\"\n}", 269 | "options": { 270 | "raw": { 271 | "language": "json" 272 | } 273 | } 274 | }, 275 | "url": { 276 | "raw": "localhost:3000/api/auth/login/2fa", 277 | "host": [ 278 | "localhost" 279 | ], 280 | "port": "3000", 281 | "path": [ 282 | "api", 283 | "auth", 284 | "login", 285 | "2fa" 286 | ] 287 | } 288 | }, 289 | "response": [] 290 | } 291 | ] 292 | } -------------------------------------------------------------------------------- /config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | accessTokenSecret: 'myAccessTokenSecret', 3 | accessTokenExpiresIn: '30m', 4 | 5 | refreshTokenSecret: 'myRefreshTokenSecret', 6 | refreshTokenExpiresIn: '1w', 7 | 8 | cacheTemporaryTokenPrefix: 'temp_token:', 9 | cacheTemporaryTokenExpiresInSeconds: 180 10 | } -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const express = require('express') 2 | const Datastore = require('nedb-promises') 3 | const bcrypt = require('bcryptjs') 4 | const jwt = require('jsonwebtoken') 5 | const { authenticator } = require('otplib') 6 | const qrcode = require('qrcode') 7 | const crypto = require('crypto') 8 | const NodeCache = require('node-cache') 9 | 10 | const config = require('./config') 11 | 12 | // Initialize express 13 | const app = express() 14 | 15 | // Configure body parser 16 | app.use(express.json()) 17 | 18 | const cache = new NodeCache() 19 | 20 | const users = Datastore.create('Users.db') 21 | const userRefreshTokens = Datastore.create('UserRefreshTokens.db') 22 | const userInvalidTokens = Datastore.create('UserInvalidTokens.db') 23 | 24 | app.get('/', (req, res) => { 25 | res.send('REST API Authentication and Authorization') 26 | }) 27 | 28 | app.post('/api/auth/register', async (req, res) => { 29 | try { 30 | const { name, email, password, role } = req.body 31 | 32 | if (!name || !email || !password) { 33 | return res.status(422).json({ message: 'Please fill in all fields (name, email and password)' }) 34 | } 35 | 36 | if (await users.findOne({ email })) { 37 | return res.status(409).json({ message: 'Email already exists' }) 38 | } 39 | 40 | const hashedPassword = await bcrypt.hash(password, 10) 41 | 42 | const newUser = await users.insert({ 43 | name, 44 | email, 45 | password: hashedPassword, 46 | role: role ?? 'member', 47 | '2faEnable': false, 48 | '2faSecret': null 49 | }) 50 | 51 | return res.status(201).json({ 52 | message: 'User registered successfully', 53 | id: newUser._id 54 | }) 55 | 56 | } catch (error) { 57 | return res.status(500).json({ message: error.message }) 58 | } 59 | }) 60 | 61 | app.post('/api/auth/login', async (req, res) => { 62 | try { 63 | const { email, password } = req.body 64 | 65 | if (!email || !password) { 66 | return res.status(422).json({ message: 'Please fill in all fields (email and password)' }) 67 | } 68 | 69 | const user = await users.findOne({ email }) 70 | 71 | if (!user) { 72 | return res.status(401).json({ message: 'Email or password is invalid' }) 73 | } 74 | 75 | const passwordMatch = await bcrypt.compare(password, user.password) 76 | 77 | if (!passwordMatch) { 78 | return res.status(401).json({ message: 'Email or password is invalid' }) 79 | } 80 | 81 | if (user['2faEnable']) { 82 | const tempToken = crypto.randomUUID() 83 | 84 | cache.set(config.cacheTemporaryTokenPrefix + tempToken, user._id, config.cacheTemporaryTokenExpiresInSeconds) 85 | 86 | return res.status(200).json({ tempToken, expiresInSeconds: config.cacheTemporaryTokenExpiresInSeconds }) 87 | } else { 88 | const accessToken = jwt.sign({ userId: user._id }, config.accessTokenSecret, { subject: 'accessApi', expiresIn: config.accessTokenExpiresIn }) 89 | 90 | const refreshToken = jwt.sign({ userId: user._id }, config.refreshTokenSecret, { subject: 'refreshToken', expiresIn: config.refreshTokenExpiresIn }) 91 | 92 | await userRefreshTokens.insert({ 93 | refreshToken, 94 | userId: user._id 95 | }) 96 | 97 | return res.status(200).json({ 98 | id: user._id, 99 | name: user.name, 100 | email: user.email, 101 | accessToken, 102 | refreshToken 103 | }) 104 | } 105 | } catch (error) { 106 | return res.status(500).json({ message: error.message }) 107 | } 108 | }) 109 | 110 | app.post('/api/auth/login/2fa', async (req, res) => { 111 | try { 112 | const { tempToken, totp } = req.body 113 | 114 | if (!tempToken || !totp) { 115 | return res.status(422).json({ message: 'Please fill in all fields (tempToken and totp)' }) 116 | } 117 | 118 | const userId = cache.get(config.cacheTemporaryTokenPrefix + tempToken) 119 | 120 | if (!userId) { 121 | return res.status(401).json({ message: 'The provided temporary token is incorrect or expired' }) 122 | } 123 | 124 | const user = await users.findOne({ _id: userId }) 125 | 126 | const verified = authenticator.check(totp, user['2faSecret']) 127 | 128 | if (!verified) { 129 | return res.status(401).json({ message: 'The provided TOTP is incorrect or expired' }) 130 | } 131 | 132 | const accessToken = jwt.sign({ userId: user._id }, config.accessTokenSecret, { subject: 'accessApi', expiresIn: config.accessTokenExpiresIn }) 133 | 134 | const refreshToken = jwt.sign({ userId: user._id }, config.refreshTokenSecret, { subject: 'refreshToken', expiresIn: config.refreshTokenExpiresIn }) 135 | 136 | await userRefreshTokens.insert({ 137 | refreshToken, 138 | userId: user._id 139 | }) 140 | 141 | return res.status(200).json({ 142 | id: user._id, 143 | name: user.name, 144 | email: user.email, 145 | accessToken, 146 | refreshToken 147 | }) 148 | 149 | } catch (error) { 150 | return res.status(500).json({ message: error.message }) 151 | } 152 | }) 153 | 154 | app.post('/api/auth/refresh-token', async (req, res) => { 155 | try { 156 | const { refreshToken } = req.body 157 | 158 | if (!refreshToken) { 159 | return res.status(401).json({ message: 'Refresh token not found' }) 160 | } 161 | 162 | const decodedRefreshToken = jwt.verify(refreshToken, config.refreshTokenSecret) 163 | 164 | const userRefreshToken = await userRefreshTokens.findOne({ refreshToken, userId: decodedRefreshToken.userId }) 165 | 166 | if (!userRefreshToken) { 167 | return res.status(401).json({ message: 'Refresh token invalid or expired' }) 168 | } 169 | 170 | await userRefreshTokens.remove({ _id: userRefreshToken._id }) 171 | await userRefreshTokens.compactDatafile() 172 | 173 | const accessToken = jwt.sign({ userId: decodedRefreshToken.userId }, config.accessTokenSecret, { subject: 'accessApi', expiresIn: config.accessTokenExpiresIn }) 174 | 175 | const newRefreshToken = jwt.sign({ userId: decodedRefreshToken.userId }, config.refreshTokenSecret, { subject: 'refreshToken', expiresIn: config.refreshTokenExpiresIn }) 176 | 177 | await userRefreshTokens.insert({ 178 | refreshToken: newRefreshToken, 179 | userId: decodedRefreshToken.userId 180 | }) 181 | 182 | return res.status(200).json({ 183 | accessToken, 184 | refreshToken: newRefreshToken 185 | }) 186 | } catch (error) { 187 | if (error instanceof jwt.TokenExpiredError || error instanceof jwt.JsonWebTokenError) { 188 | return res.status(401).json({ message: 'Refresh token invalid or expired' }) 189 | } 190 | 191 | return res.status(500).json({ message: error.message }) 192 | } 193 | }) 194 | 195 | app.get('/api/auth/2fa/generate', ensureAuthenticated, async (req, res) => { 196 | try { 197 | const user = await users.findOne({ _id: req.user.id }) 198 | 199 | const secret = authenticator.generateSecret() 200 | const uri = authenticator.keyuri(user.email, 'manfra.io', secret) 201 | 202 | await users.update({ _id: req.user.id }, { $set: { '2faSecret': secret } }) 203 | await users.compactDatafile() 204 | 205 | const qrCode = await qrcode.toBuffer(uri, { type: 'image/png', margin: 1 }) 206 | 207 | res.setHeader('Content-Disposition', 'attachment; filename=qrcode.png') 208 | return res.status(200).type('image/png').send(qrCode) 209 | 210 | } catch (error) { 211 | return res.status(500).json({ message: error.message }) 212 | } 213 | }) 214 | 215 | app.post('/api/auth/2fa/validate', ensureAuthenticated, async (req, res) => { 216 | try { 217 | const { totp } = req.body 218 | 219 | if (!totp) { 220 | return res.status(422).json({ message: 'TOTP is required' }) 221 | } 222 | 223 | const user = await users.findOne({ _id: req.user.id }) 224 | 225 | const verified = authenticator.check(totp, user['2faSecret']) 226 | 227 | if (!verified) { 228 | return res.status(400).json({ message: 'TOTP is not correct or expired' }) 229 | } 230 | 231 | await users.update({ _id: req.user.id }, { $set: { '2faEnable': true } }) 232 | await users.compactDatafile() 233 | 234 | return res.status(200).json({ message: 'TOTP validated successfully' }) 235 | } catch (error) { 236 | return res.status(500).json({ message: error.message }) 237 | } 238 | }) 239 | 240 | app.get('/api/auth/logout', ensureAuthenticated, async (req, res) => { 241 | try { 242 | await userRefreshTokens.removeMany({ userId: req.user.id }) 243 | await userRefreshTokens.compactDatafile() 244 | 245 | await userInvalidTokens.insert({ 246 | accessToken: req.accessToken.value, 247 | userId: req.user.id, 248 | expirationTime: req.accessToken.exp 249 | }) 250 | 251 | return res.status(204).send() 252 | } catch (error) { 253 | return res.status(500).json({ message: error.message }) 254 | } 255 | }) 256 | 257 | app.get('/api/users/current', ensureAuthenticated, async (req, res) => { 258 | try { 259 | const user = await users.findOne({ _id: req.user.id }) 260 | 261 | return res.status(200).json({ 262 | id: user._id, 263 | name: user.name, 264 | email: user.email 265 | }) 266 | } catch (error) { 267 | return res.status(500).json({ message: error.message }) 268 | } 269 | }) 270 | 271 | app.get('/api/admin', ensureAuthenticated, authorize(['admin']), (req, res) => { 272 | return res.status(200).json({ message: 'Only admins can access this route!' }) 273 | }) 274 | 275 | app.get('/api/moderator', ensureAuthenticated, authorize(['admin', 'moderator']), (req, res) => { 276 | return res.status(200).json({ message: 'Only admins and moderators can access this route!' }) 277 | }) 278 | 279 | async function ensureAuthenticated(req, res, next) { 280 | const accessToken = req.headers.authorization 281 | 282 | if (!accessToken) { 283 | return res.status(401).json({ message: 'Access token not found' }) 284 | } 285 | 286 | if (await userInvalidTokens.findOne({ accessToken })) { 287 | return res.status(401).json({ message: 'Access token invalid', code: 'AccessTokenInvalid' }) 288 | } 289 | 290 | try { 291 | const decodedAccessToken = jwt.verify(accessToken, config.accessTokenSecret) 292 | 293 | req.accessToken = { value: accessToken, exp: decodedAccessToken.exp } 294 | req.user = { id: decodedAccessToken.userId } 295 | 296 | next() 297 | } catch (error) { 298 | if (error instanceof jwt.TokenExpiredError) { 299 | return res.status(401).json({ message: 'Access token expired', code: 'AccessTokenExpired' }) 300 | } else if (error instanceof jwt.JsonWebTokenError) { 301 | return res.status(401).json({ message: 'Access token invalid', code: 'AccessTokenInvalid' }) 302 | } else { 303 | return res.status(500).json({ message: error.message }) 304 | } 305 | } 306 | } 307 | 308 | function authorize(roles = []) { 309 | return async function (req, res, next) { 310 | const user = await users.findOne({ _id: req.user.id }) 311 | 312 | if (!user || !roles.includes(user.role)) { 313 | return res.status(403).json({ message: 'Access denied' }) 314 | } 315 | 316 | next() 317 | } 318 | } 319 | 320 | app.listen(3000, () => console.log('Server started on port 3000')) -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rest_api_auth_nodejs", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "rest_api_auth_nodejs", 9 | "version": "1.0.0", 10 | "license": "ISC", 11 | "dependencies": { 12 | "bcryptjs": "^2.4.3", 13 | "express": "^4.19.2", 14 | "jsonwebtoken": "^9.0.2", 15 | "nedb-promises": "^6.2.3", 16 | "node-cache": "^5.1.2", 17 | "otplib": "^12.0.1", 18 | "qrcode": "^1.5.3" 19 | }, 20 | "devDependencies": { 21 | "nodemon": "^3.1.0" 22 | } 23 | }, 24 | "node_modules/@otplib/core": { 25 | "version": "12.0.1", 26 | "resolved": "https://registry.npmjs.org/@otplib/core/-/core-12.0.1.tgz", 27 | "integrity": "sha512-4sGntwbA/AC+SbPhbsziRiD+jNDdIzsZ3JUyfZwjtKyc/wufl1pnSIaG4Uqx8ymPagujub0o92kgBnB89cuAMA==" 28 | }, 29 | "node_modules/@otplib/plugin-crypto": { 30 | "version": "12.0.1", 31 | "resolved": "https://registry.npmjs.org/@otplib/plugin-crypto/-/plugin-crypto-12.0.1.tgz", 32 | "integrity": "sha512-qPuhN3QrT7ZZLcLCyKOSNhuijUi9G5guMRVrxq63r9YNOxxQjPm59gVxLM+7xGnHnM6cimY57tuKsjK7y9LM1g==", 33 | "dependencies": { 34 | "@otplib/core": "^12.0.1" 35 | } 36 | }, 37 | "node_modules/@otplib/plugin-thirty-two": { 38 | "version": "12.0.1", 39 | "resolved": "https://registry.npmjs.org/@otplib/plugin-thirty-two/-/plugin-thirty-two-12.0.1.tgz", 40 | "integrity": "sha512-MtT+uqRso909UkbrrYpJ6XFjj9D+x2Py7KjTO9JDPhL0bJUYVu5kFP4TFZW4NFAywrAtFRxOVY261u0qwb93gA==", 41 | "dependencies": { 42 | "@otplib/core": "^12.0.1", 43 | "thirty-two": "^1.0.2" 44 | } 45 | }, 46 | "node_modules/@otplib/preset-default": { 47 | "version": "12.0.1", 48 | "resolved": "https://registry.npmjs.org/@otplib/preset-default/-/preset-default-12.0.1.tgz", 49 | "integrity": "sha512-xf1v9oOJRyXfluBhMdpOkr+bsE+Irt+0D5uHtvg6x1eosfmHCsCC6ej/m7FXiWqdo0+ZUI6xSKDhJwc8yfiOPQ==", 50 | "dependencies": { 51 | "@otplib/core": "^12.0.1", 52 | "@otplib/plugin-crypto": "^12.0.1", 53 | "@otplib/plugin-thirty-two": "^12.0.1" 54 | } 55 | }, 56 | "node_modules/@otplib/preset-v11": { 57 | "version": "12.0.1", 58 | "resolved": "https://registry.npmjs.org/@otplib/preset-v11/-/preset-v11-12.0.1.tgz", 59 | "integrity": "sha512-9hSetMI7ECqbFiKICrNa4w70deTUfArtwXykPUvSHWOdzOlfa9ajglu7mNCntlvxycTiOAXkQGwjQCzzDEMRMg==", 60 | "dependencies": { 61 | "@otplib/core": "^12.0.1", 62 | "@otplib/plugin-crypto": "^12.0.1", 63 | "@otplib/plugin-thirty-two": "^12.0.1" 64 | } 65 | }, 66 | "node_modules/@seald-io/binary-search-tree": { 67 | "version": "1.0.3", 68 | "resolved": "https://registry.npmjs.org/@seald-io/binary-search-tree/-/binary-search-tree-1.0.3.tgz", 69 | "integrity": "sha512-qv3jnwoakeax2razYaMsGI/luWdliBLHTdC6jU55hQt1hcFqzauH/HsBollQ7IR4ySTtYhT+xyHoijpA16C+tA==" 70 | }, 71 | "node_modules/@seald-io/nedb": { 72 | "version": "4.0.4", 73 | "resolved": "https://registry.npmjs.org/@seald-io/nedb/-/nedb-4.0.4.tgz", 74 | "integrity": "sha512-CUNcMio7QUHTA+sIJ/DC5JzVNNsHe743TPmC4H5Gij9zDLMbmrCT2li3eVB72/gF63BPS8pWEZrjlAMRKA8FDw==", 75 | "dependencies": { 76 | "@seald-io/binary-search-tree": "^1.0.3", 77 | "localforage": "^1.9.0", 78 | "util": "^0.12.4" 79 | } 80 | }, 81 | "node_modules/abbrev": { 82 | "version": "1.1.1", 83 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 84 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", 85 | "dev": true 86 | }, 87 | "node_modules/accepts": { 88 | "version": "1.3.8", 89 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", 90 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", 91 | "dependencies": { 92 | "mime-types": "~2.1.34", 93 | "negotiator": "0.6.3" 94 | }, 95 | "engines": { 96 | "node": ">= 0.6" 97 | } 98 | }, 99 | "node_modules/ansi-regex": { 100 | "version": "5.0.1", 101 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 102 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 103 | "engines": { 104 | "node": ">=8" 105 | } 106 | }, 107 | "node_modules/ansi-styles": { 108 | "version": "4.3.0", 109 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 110 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 111 | "dependencies": { 112 | "color-convert": "^2.0.1" 113 | }, 114 | "engines": { 115 | "node": ">=8" 116 | }, 117 | "funding": { 118 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 119 | } 120 | }, 121 | "node_modules/anymatch": { 122 | "version": "3.1.3", 123 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 124 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 125 | "dev": true, 126 | "dependencies": { 127 | "normalize-path": "^3.0.0", 128 | "picomatch": "^2.0.4" 129 | }, 130 | "engines": { 131 | "node": ">= 8" 132 | } 133 | }, 134 | "node_modules/array-flatten": { 135 | "version": "1.1.1", 136 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 137 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" 138 | }, 139 | "node_modules/available-typed-arrays": { 140 | "version": "1.0.7", 141 | "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", 142 | "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", 143 | "dependencies": { 144 | "possible-typed-array-names": "^1.0.0" 145 | }, 146 | "engines": { 147 | "node": ">= 0.4" 148 | }, 149 | "funding": { 150 | "url": "https://github.com/sponsors/ljharb" 151 | } 152 | }, 153 | "node_modules/balanced-match": { 154 | "version": "1.0.2", 155 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 156 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 157 | "dev": true 158 | }, 159 | "node_modules/bcryptjs": { 160 | "version": "2.4.3", 161 | "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz", 162 | "integrity": "sha512-V/Hy/X9Vt7f3BbPJEi8BdVFMByHi+jNXrYkW3huaybV/kQ0KJg0Y6PkEMbn+zeT+i+SiKZ/HMqJGIIt4LZDqNQ==" 163 | }, 164 | "node_modules/binary-extensions": { 165 | "version": "2.3.0", 166 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", 167 | "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", 168 | "dev": true, 169 | "engines": { 170 | "node": ">=8" 171 | }, 172 | "funding": { 173 | "url": "https://github.com/sponsors/sindresorhus" 174 | } 175 | }, 176 | "node_modules/body-parser": { 177 | "version": "1.20.2", 178 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", 179 | "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", 180 | "dependencies": { 181 | "bytes": "3.1.2", 182 | "content-type": "~1.0.5", 183 | "debug": "2.6.9", 184 | "depd": "2.0.0", 185 | "destroy": "1.2.0", 186 | "http-errors": "2.0.0", 187 | "iconv-lite": "0.4.24", 188 | "on-finished": "2.4.1", 189 | "qs": "6.11.0", 190 | "raw-body": "2.5.2", 191 | "type-is": "~1.6.18", 192 | "unpipe": "1.0.0" 193 | }, 194 | "engines": { 195 | "node": ">= 0.8", 196 | "npm": "1.2.8000 || >= 1.4.16" 197 | } 198 | }, 199 | "node_modules/brace-expansion": { 200 | "version": "1.1.11", 201 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 202 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 203 | "dev": true, 204 | "dependencies": { 205 | "balanced-match": "^1.0.0", 206 | "concat-map": "0.0.1" 207 | } 208 | }, 209 | "node_modules/braces": { 210 | "version": "3.0.2", 211 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 212 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 213 | "dev": true, 214 | "dependencies": { 215 | "fill-range": "^7.0.1" 216 | }, 217 | "engines": { 218 | "node": ">=8" 219 | } 220 | }, 221 | "node_modules/buffer-equal-constant-time": { 222 | "version": "1.0.1", 223 | "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", 224 | "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" 225 | }, 226 | "node_modules/bytes": { 227 | "version": "3.1.2", 228 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 229 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 230 | "engines": { 231 | "node": ">= 0.8" 232 | } 233 | }, 234 | "node_modules/call-bind": { 235 | "version": "1.0.7", 236 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", 237 | "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", 238 | "dependencies": { 239 | "es-define-property": "^1.0.0", 240 | "es-errors": "^1.3.0", 241 | "function-bind": "^1.1.2", 242 | "get-intrinsic": "^1.2.4", 243 | "set-function-length": "^1.2.1" 244 | }, 245 | "engines": { 246 | "node": ">= 0.4" 247 | }, 248 | "funding": { 249 | "url": "https://github.com/sponsors/ljharb" 250 | } 251 | }, 252 | "node_modules/camelcase": { 253 | "version": "5.3.1", 254 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 255 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", 256 | "engines": { 257 | "node": ">=6" 258 | } 259 | }, 260 | "node_modules/chokidar": { 261 | "version": "3.6.0", 262 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", 263 | "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", 264 | "dev": true, 265 | "dependencies": { 266 | "anymatch": "~3.1.2", 267 | "braces": "~3.0.2", 268 | "glob-parent": "~5.1.2", 269 | "is-binary-path": "~2.1.0", 270 | "is-glob": "~4.0.1", 271 | "normalize-path": "~3.0.0", 272 | "readdirp": "~3.6.0" 273 | }, 274 | "engines": { 275 | "node": ">= 8.10.0" 276 | }, 277 | "funding": { 278 | "url": "https://paulmillr.com/funding/" 279 | }, 280 | "optionalDependencies": { 281 | "fsevents": "~2.3.2" 282 | } 283 | }, 284 | "node_modules/cliui": { 285 | "version": "6.0.0", 286 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", 287 | "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", 288 | "dependencies": { 289 | "string-width": "^4.2.0", 290 | "strip-ansi": "^6.0.0", 291 | "wrap-ansi": "^6.2.0" 292 | } 293 | }, 294 | "node_modules/clone": { 295 | "version": "2.1.2", 296 | "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", 297 | "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", 298 | "engines": { 299 | "node": ">=0.8" 300 | } 301 | }, 302 | "node_modules/color-convert": { 303 | "version": "2.0.1", 304 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 305 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 306 | "dependencies": { 307 | "color-name": "~1.1.4" 308 | }, 309 | "engines": { 310 | "node": ">=7.0.0" 311 | } 312 | }, 313 | "node_modules/color-name": { 314 | "version": "1.1.4", 315 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 316 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" 317 | }, 318 | "node_modules/concat-map": { 319 | "version": "0.0.1", 320 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 321 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 322 | "dev": true 323 | }, 324 | "node_modules/content-disposition": { 325 | "version": "0.5.4", 326 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", 327 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", 328 | "dependencies": { 329 | "safe-buffer": "5.2.1" 330 | }, 331 | "engines": { 332 | "node": ">= 0.6" 333 | } 334 | }, 335 | "node_modules/content-type": { 336 | "version": "1.0.5", 337 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 338 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 339 | "engines": { 340 | "node": ">= 0.6" 341 | } 342 | }, 343 | "node_modules/cookie": { 344 | "version": "0.6.0", 345 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", 346 | "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", 347 | "engines": { 348 | "node": ">= 0.6" 349 | } 350 | }, 351 | "node_modules/cookie-signature": { 352 | "version": "1.0.6", 353 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 354 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" 355 | }, 356 | "node_modules/debug": { 357 | "version": "2.6.9", 358 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 359 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 360 | "dependencies": { 361 | "ms": "2.0.0" 362 | } 363 | }, 364 | "node_modules/decamelize": { 365 | "version": "1.2.0", 366 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 367 | "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", 368 | "engines": { 369 | "node": ">=0.10.0" 370 | } 371 | }, 372 | "node_modules/define-data-property": { 373 | "version": "1.1.4", 374 | "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", 375 | "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", 376 | "dependencies": { 377 | "es-define-property": "^1.0.0", 378 | "es-errors": "^1.3.0", 379 | "gopd": "^1.0.1" 380 | }, 381 | "engines": { 382 | "node": ">= 0.4" 383 | }, 384 | "funding": { 385 | "url": "https://github.com/sponsors/ljharb" 386 | } 387 | }, 388 | "node_modules/depd": { 389 | "version": "2.0.0", 390 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 391 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 392 | "engines": { 393 | "node": ">= 0.8" 394 | } 395 | }, 396 | "node_modules/destroy": { 397 | "version": "1.2.0", 398 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 399 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 400 | "engines": { 401 | "node": ">= 0.8", 402 | "npm": "1.2.8000 || >= 1.4.16" 403 | } 404 | }, 405 | "node_modules/dijkstrajs": { 406 | "version": "1.0.3", 407 | "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz", 408 | "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==" 409 | }, 410 | "node_modules/ecdsa-sig-formatter": { 411 | "version": "1.0.11", 412 | "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", 413 | "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", 414 | "dependencies": { 415 | "safe-buffer": "^5.0.1" 416 | } 417 | }, 418 | "node_modules/ee-first": { 419 | "version": "1.1.1", 420 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 421 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" 422 | }, 423 | "node_modules/emoji-regex": { 424 | "version": "8.0.0", 425 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 426 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" 427 | }, 428 | "node_modules/encode-utf8": { 429 | "version": "1.0.3", 430 | "resolved": "https://registry.npmjs.org/encode-utf8/-/encode-utf8-1.0.3.tgz", 431 | "integrity": "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==" 432 | }, 433 | "node_modules/encodeurl": { 434 | "version": "1.0.2", 435 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 436 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", 437 | "engines": { 438 | "node": ">= 0.8" 439 | } 440 | }, 441 | "node_modules/es-define-property": { 442 | "version": "1.0.0", 443 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", 444 | "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", 445 | "dependencies": { 446 | "get-intrinsic": "^1.2.4" 447 | }, 448 | "engines": { 449 | "node": ">= 0.4" 450 | } 451 | }, 452 | "node_modules/es-errors": { 453 | "version": "1.3.0", 454 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", 455 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", 456 | "engines": { 457 | "node": ">= 0.4" 458 | } 459 | }, 460 | "node_modules/escape-html": { 461 | "version": "1.0.3", 462 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 463 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" 464 | }, 465 | "node_modules/etag": { 466 | "version": "1.8.1", 467 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 468 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", 469 | "engines": { 470 | "node": ">= 0.6" 471 | } 472 | }, 473 | "node_modules/express": { 474 | "version": "4.19.2", 475 | "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", 476 | "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==", 477 | "dependencies": { 478 | "accepts": "~1.3.8", 479 | "array-flatten": "1.1.1", 480 | "body-parser": "1.20.2", 481 | "content-disposition": "0.5.4", 482 | "content-type": "~1.0.4", 483 | "cookie": "0.6.0", 484 | "cookie-signature": "1.0.6", 485 | "debug": "2.6.9", 486 | "depd": "2.0.0", 487 | "encodeurl": "~1.0.2", 488 | "escape-html": "~1.0.3", 489 | "etag": "~1.8.1", 490 | "finalhandler": "1.2.0", 491 | "fresh": "0.5.2", 492 | "http-errors": "2.0.0", 493 | "merge-descriptors": "1.0.1", 494 | "methods": "~1.1.2", 495 | "on-finished": "2.4.1", 496 | "parseurl": "~1.3.3", 497 | "path-to-regexp": "0.1.7", 498 | "proxy-addr": "~2.0.7", 499 | "qs": "6.11.0", 500 | "range-parser": "~1.2.1", 501 | "safe-buffer": "5.2.1", 502 | "send": "0.18.0", 503 | "serve-static": "1.15.0", 504 | "setprototypeof": "1.2.0", 505 | "statuses": "2.0.1", 506 | "type-is": "~1.6.18", 507 | "utils-merge": "1.0.1", 508 | "vary": "~1.1.2" 509 | }, 510 | "engines": { 511 | "node": ">= 0.10.0" 512 | } 513 | }, 514 | "node_modules/fill-range": { 515 | "version": "7.0.1", 516 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 517 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 518 | "dev": true, 519 | "dependencies": { 520 | "to-regex-range": "^5.0.1" 521 | }, 522 | "engines": { 523 | "node": ">=8" 524 | } 525 | }, 526 | "node_modules/finalhandler": { 527 | "version": "1.2.0", 528 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", 529 | "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", 530 | "dependencies": { 531 | "debug": "2.6.9", 532 | "encodeurl": "~1.0.2", 533 | "escape-html": "~1.0.3", 534 | "on-finished": "2.4.1", 535 | "parseurl": "~1.3.3", 536 | "statuses": "2.0.1", 537 | "unpipe": "~1.0.0" 538 | }, 539 | "engines": { 540 | "node": ">= 0.8" 541 | } 542 | }, 543 | "node_modules/find-up": { 544 | "version": "4.1.0", 545 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", 546 | "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", 547 | "dependencies": { 548 | "locate-path": "^5.0.0", 549 | "path-exists": "^4.0.0" 550 | }, 551 | "engines": { 552 | "node": ">=8" 553 | } 554 | }, 555 | "node_modules/for-each": { 556 | "version": "0.3.3", 557 | "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", 558 | "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", 559 | "dependencies": { 560 | "is-callable": "^1.1.3" 561 | } 562 | }, 563 | "node_modules/forwarded": { 564 | "version": "0.2.0", 565 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 566 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", 567 | "engines": { 568 | "node": ">= 0.6" 569 | } 570 | }, 571 | "node_modules/fresh": { 572 | "version": "0.5.2", 573 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 574 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 575 | "engines": { 576 | "node": ">= 0.6" 577 | } 578 | }, 579 | "node_modules/fsevents": { 580 | "version": "2.3.3", 581 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 582 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 583 | "dev": true, 584 | "hasInstallScript": true, 585 | "optional": true, 586 | "os": [ 587 | "darwin" 588 | ], 589 | "engines": { 590 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 591 | } 592 | }, 593 | "node_modules/function-bind": { 594 | "version": "1.1.2", 595 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 596 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 597 | "funding": { 598 | "url": "https://github.com/sponsors/ljharb" 599 | } 600 | }, 601 | "node_modules/get-caller-file": { 602 | "version": "2.0.5", 603 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 604 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 605 | "engines": { 606 | "node": "6.* || 8.* || >= 10.*" 607 | } 608 | }, 609 | "node_modules/get-intrinsic": { 610 | "version": "1.2.4", 611 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", 612 | "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", 613 | "dependencies": { 614 | "es-errors": "^1.3.0", 615 | "function-bind": "^1.1.2", 616 | "has-proto": "^1.0.1", 617 | "has-symbols": "^1.0.3", 618 | "hasown": "^2.0.0" 619 | }, 620 | "engines": { 621 | "node": ">= 0.4" 622 | }, 623 | "funding": { 624 | "url": "https://github.com/sponsors/ljharb" 625 | } 626 | }, 627 | "node_modules/glob-parent": { 628 | "version": "5.1.2", 629 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 630 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 631 | "dev": true, 632 | "dependencies": { 633 | "is-glob": "^4.0.1" 634 | }, 635 | "engines": { 636 | "node": ">= 6" 637 | } 638 | }, 639 | "node_modules/gopd": { 640 | "version": "1.0.1", 641 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", 642 | "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", 643 | "dependencies": { 644 | "get-intrinsic": "^1.1.3" 645 | }, 646 | "funding": { 647 | "url": "https://github.com/sponsors/ljharb" 648 | } 649 | }, 650 | "node_modules/has-flag": { 651 | "version": "3.0.0", 652 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 653 | "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", 654 | "dev": true, 655 | "engines": { 656 | "node": ">=4" 657 | } 658 | }, 659 | "node_modules/has-property-descriptors": { 660 | "version": "1.0.2", 661 | "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", 662 | "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", 663 | "dependencies": { 664 | "es-define-property": "^1.0.0" 665 | }, 666 | "funding": { 667 | "url": "https://github.com/sponsors/ljharb" 668 | } 669 | }, 670 | "node_modules/has-proto": { 671 | "version": "1.0.3", 672 | "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", 673 | "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", 674 | "engines": { 675 | "node": ">= 0.4" 676 | }, 677 | "funding": { 678 | "url": "https://github.com/sponsors/ljharb" 679 | } 680 | }, 681 | "node_modules/has-symbols": { 682 | "version": "1.0.3", 683 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", 684 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", 685 | "engines": { 686 | "node": ">= 0.4" 687 | }, 688 | "funding": { 689 | "url": "https://github.com/sponsors/ljharb" 690 | } 691 | }, 692 | "node_modules/has-tostringtag": { 693 | "version": "1.0.2", 694 | "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", 695 | "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", 696 | "dependencies": { 697 | "has-symbols": "^1.0.3" 698 | }, 699 | "engines": { 700 | "node": ">= 0.4" 701 | }, 702 | "funding": { 703 | "url": "https://github.com/sponsors/ljharb" 704 | } 705 | }, 706 | "node_modules/hasown": { 707 | "version": "2.0.2", 708 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 709 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 710 | "dependencies": { 711 | "function-bind": "^1.1.2" 712 | }, 713 | "engines": { 714 | "node": ">= 0.4" 715 | } 716 | }, 717 | "node_modules/http-errors": { 718 | "version": "2.0.0", 719 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 720 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 721 | "dependencies": { 722 | "depd": "2.0.0", 723 | "inherits": "2.0.4", 724 | "setprototypeof": "1.2.0", 725 | "statuses": "2.0.1", 726 | "toidentifier": "1.0.1" 727 | }, 728 | "engines": { 729 | "node": ">= 0.8" 730 | } 731 | }, 732 | "node_modules/iconv-lite": { 733 | "version": "0.4.24", 734 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 735 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 736 | "dependencies": { 737 | "safer-buffer": ">= 2.1.2 < 3" 738 | }, 739 | "engines": { 740 | "node": ">=0.10.0" 741 | } 742 | }, 743 | "node_modules/ignore-by-default": { 744 | "version": "1.0.1", 745 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 746 | "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", 747 | "dev": true 748 | }, 749 | "node_modules/immediate": { 750 | "version": "3.0.6", 751 | "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", 752 | "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==" 753 | }, 754 | "node_modules/inherits": { 755 | "version": "2.0.4", 756 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 757 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 758 | }, 759 | "node_modules/ipaddr.js": { 760 | "version": "1.9.1", 761 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 762 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 763 | "engines": { 764 | "node": ">= 0.10" 765 | } 766 | }, 767 | "node_modules/is-arguments": { 768 | "version": "1.1.1", 769 | "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", 770 | "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", 771 | "dependencies": { 772 | "call-bind": "^1.0.2", 773 | "has-tostringtag": "^1.0.0" 774 | }, 775 | "engines": { 776 | "node": ">= 0.4" 777 | }, 778 | "funding": { 779 | "url": "https://github.com/sponsors/ljharb" 780 | } 781 | }, 782 | "node_modules/is-binary-path": { 783 | "version": "2.1.0", 784 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 785 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 786 | "dev": true, 787 | "dependencies": { 788 | "binary-extensions": "^2.0.0" 789 | }, 790 | "engines": { 791 | "node": ">=8" 792 | } 793 | }, 794 | "node_modules/is-callable": { 795 | "version": "1.2.7", 796 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", 797 | "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", 798 | "engines": { 799 | "node": ">= 0.4" 800 | }, 801 | "funding": { 802 | "url": "https://github.com/sponsors/ljharb" 803 | } 804 | }, 805 | "node_modules/is-extglob": { 806 | "version": "2.1.1", 807 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 808 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 809 | "dev": true, 810 | "engines": { 811 | "node": ">=0.10.0" 812 | } 813 | }, 814 | "node_modules/is-fullwidth-code-point": { 815 | "version": "3.0.0", 816 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 817 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 818 | "engines": { 819 | "node": ">=8" 820 | } 821 | }, 822 | "node_modules/is-generator-function": { 823 | "version": "1.0.10", 824 | "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", 825 | "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", 826 | "dependencies": { 827 | "has-tostringtag": "^1.0.0" 828 | }, 829 | "engines": { 830 | "node": ">= 0.4" 831 | }, 832 | "funding": { 833 | "url": "https://github.com/sponsors/ljharb" 834 | } 835 | }, 836 | "node_modules/is-glob": { 837 | "version": "4.0.3", 838 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 839 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 840 | "dev": true, 841 | "dependencies": { 842 | "is-extglob": "^2.1.1" 843 | }, 844 | "engines": { 845 | "node": ">=0.10.0" 846 | } 847 | }, 848 | "node_modules/is-number": { 849 | "version": "7.0.0", 850 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 851 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 852 | "dev": true, 853 | "engines": { 854 | "node": ">=0.12.0" 855 | } 856 | }, 857 | "node_modules/is-typed-array": { 858 | "version": "1.1.13", 859 | "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", 860 | "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", 861 | "dependencies": { 862 | "which-typed-array": "^1.1.14" 863 | }, 864 | "engines": { 865 | "node": ">= 0.4" 866 | }, 867 | "funding": { 868 | "url": "https://github.com/sponsors/ljharb" 869 | } 870 | }, 871 | "node_modules/jsonwebtoken": { 872 | "version": "9.0.2", 873 | "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", 874 | "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", 875 | "dependencies": { 876 | "jws": "^3.2.2", 877 | "lodash.includes": "^4.3.0", 878 | "lodash.isboolean": "^3.0.3", 879 | "lodash.isinteger": "^4.0.4", 880 | "lodash.isnumber": "^3.0.3", 881 | "lodash.isplainobject": "^4.0.6", 882 | "lodash.isstring": "^4.0.1", 883 | "lodash.once": "^4.0.0", 884 | "ms": "^2.1.1", 885 | "semver": "^7.5.4" 886 | }, 887 | "engines": { 888 | "node": ">=12", 889 | "npm": ">=6" 890 | } 891 | }, 892 | "node_modules/jsonwebtoken/node_modules/ms": { 893 | "version": "2.1.3", 894 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 895 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 896 | }, 897 | "node_modules/jwa": { 898 | "version": "1.4.1", 899 | "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", 900 | "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", 901 | "dependencies": { 902 | "buffer-equal-constant-time": "1.0.1", 903 | "ecdsa-sig-formatter": "1.0.11", 904 | "safe-buffer": "^5.0.1" 905 | } 906 | }, 907 | "node_modules/jws": { 908 | "version": "3.2.2", 909 | "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", 910 | "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", 911 | "dependencies": { 912 | "jwa": "^1.4.1", 913 | "safe-buffer": "^5.0.1" 914 | } 915 | }, 916 | "node_modules/lie": { 917 | "version": "3.1.1", 918 | "resolved": "https://registry.npmjs.org/lie/-/lie-3.1.1.tgz", 919 | "integrity": "sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==", 920 | "dependencies": { 921 | "immediate": "~3.0.5" 922 | } 923 | }, 924 | "node_modules/localforage": { 925 | "version": "1.10.0", 926 | "resolved": "https://registry.npmjs.org/localforage/-/localforage-1.10.0.tgz", 927 | "integrity": "sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==", 928 | "dependencies": { 929 | "lie": "3.1.1" 930 | } 931 | }, 932 | "node_modules/locate-path": { 933 | "version": "5.0.0", 934 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", 935 | "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", 936 | "dependencies": { 937 | "p-locate": "^4.1.0" 938 | }, 939 | "engines": { 940 | "node": ">=8" 941 | } 942 | }, 943 | "node_modules/lodash.includes": { 944 | "version": "4.3.0", 945 | "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", 946 | "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==" 947 | }, 948 | "node_modules/lodash.isboolean": { 949 | "version": "3.0.3", 950 | "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", 951 | "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==" 952 | }, 953 | "node_modules/lodash.isinteger": { 954 | "version": "4.0.4", 955 | "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", 956 | "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==" 957 | }, 958 | "node_modules/lodash.isnumber": { 959 | "version": "3.0.3", 960 | "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", 961 | "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==" 962 | }, 963 | "node_modules/lodash.isplainobject": { 964 | "version": "4.0.6", 965 | "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", 966 | "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" 967 | }, 968 | "node_modules/lodash.isstring": { 969 | "version": "4.0.1", 970 | "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", 971 | "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==" 972 | }, 973 | "node_modules/lodash.once": { 974 | "version": "4.1.1", 975 | "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", 976 | "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==" 977 | }, 978 | "node_modules/lru-cache": { 979 | "version": "6.0.0", 980 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 981 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 982 | "dependencies": { 983 | "yallist": "^4.0.0" 984 | }, 985 | "engines": { 986 | "node": ">=10" 987 | } 988 | }, 989 | "node_modules/media-typer": { 990 | "version": "0.3.0", 991 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 992 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", 993 | "engines": { 994 | "node": ">= 0.6" 995 | } 996 | }, 997 | "node_modules/merge-descriptors": { 998 | "version": "1.0.1", 999 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 1000 | "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" 1001 | }, 1002 | "node_modules/methods": { 1003 | "version": "1.1.2", 1004 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1005 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 1006 | "engines": { 1007 | "node": ">= 0.6" 1008 | } 1009 | }, 1010 | "node_modules/mime": { 1011 | "version": "1.6.0", 1012 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1013 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 1014 | "bin": { 1015 | "mime": "cli.js" 1016 | }, 1017 | "engines": { 1018 | "node": ">=4" 1019 | } 1020 | }, 1021 | "node_modules/mime-db": { 1022 | "version": "1.52.0", 1023 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 1024 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 1025 | "engines": { 1026 | "node": ">= 0.6" 1027 | } 1028 | }, 1029 | "node_modules/mime-types": { 1030 | "version": "2.1.35", 1031 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 1032 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 1033 | "dependencies": { 1034 | "mime-db": "1.52.0" 1035 | }, 1036 | "engines": { 1037 | "node": ">= 0.6" 1038 | } 1039 | }, 1040 | "node_modules/minimatch": { 1041 | "version": "3.1.2", 1042 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1043 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1044 | "dev": true, 1045 | "dependencies": { 1046 | "brace-expansion": "^1.1.7" 1047 | }, 1048 | "engines": { 1049 | "node": "*" 1050 | } 1051 | }, 1052 | "node_modules/ms": { 1053 | "version": "2.0.0", 1054 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1055 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 1056 | }, 1057 | "node_modules/nedb-promises": { 1058 | "version": "6.2.3", 1059 | "resolved": "https://registry.npmjs.org/nedb-promises/-/nedb-promises-6.2.3.tgz", 1060 | "integrity": "sha512-enq0IjNyBz9Qy9W/QPCcLGh/QORGBjXbIeZeWvIjO3OMLyAvlKT3hiJubP2BKEiFniUlR3L01o18ktqgn5jxqA==", 1061 | "dependencies": { 1062 | "@seald-io/nedb": "^4.0.2" 1063 | } 1064 | }, 1065 | "node_modules/negotiator": { 1066 | "version": "0.6.3", 1067 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", 1068 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", 1069 | "engines": { 1070 | "node": ">= 0.6" 1071 | } 1072 | }, 1073 | "node_modules/node-cache": { 1074 | "version": "5.1.2", 1075 | "resolved": "https://registry.npmjs.org/node-cache/-/node-cache-5.1.2.tgz", 1076 | "integrity": "sha512-t1QzWwnk4sjLWaQAS8CHgOJ+RAfmHpxFWmc36IWTiWHQfs0w5JDMBS1b1ZxQteo0vVVuWJvIUKHDkkeK7vIGCg==", 1077 | "dependencies": { 1078 | "clone": "2.x" 1079 | }, 1080 | "engines": { 1081 | "node": ">= 8.0.0" 1082 | } 1083 | }, 1084 | "node_modules/nodemon": { 1085 | "version": "3.1.0", 1086 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.0.tgz", 1087 | "integrity": "sha512-xqlktYlDMCepBJd43ZQhjWwMw2obW/JRvkrLxq5RCNcuDDX1DbcPT+qT1IlIIdf+DhnWs90JpTMe+Y5KxOchvA==", 1088 | "dev": true, 1089 | "dependencies": { 1090 | "chokidar": "^3.5.2", 1091 | "debug": "^4", 1092 | "ignore-by-default": "^1.0.1", 1093 | "minimatch": "^3.1.2", 1094 | "pstree.remy": "^1.1.8", 1095 | "semver": "^7.5.3", 1096 | "simple-update-notifier": "^2.0.0", 1097 | "supports-color": "^5.5.0", 1098 | "touch": "^3.1.0", 1099 | "undefsafe": "^2.0.5" 1100 | }, 1101 | "bin": { 1102 | "nodemon": "bin/nodemon.js" 1103 | }, 1104 | "engines": { 1105 | "node": ">=10" 1106 | }, 1107 | "funding": { 1108 | "type": "opencollective", 1109 | "url": "https://opencollective.com/nodemon" 1110 | } 1111 | }, 1112 | "node_modules/nodemon/node_modules/debug": { 1113 | "version": "4.3.4", 1114 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 1115 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 1116 | "dev": true, 1117 | "dependencies": { 1118 | "ms": "2.1.2" 1119 | }, 1120 | "engines": { 1121 | "node": ">=6.0" 1122 | }, 1123 | "peerDependenciesMeta": { 1124 | "supports-color": { 1125 | "optional": true 1126 | } 1127 | } 1128 | }, 1129 | "node_modules/nodemon/node_modules/ms": { 1130 | "version": "2.1.2", 1131 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1132 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1133 | "dev": true 1134 | }, 1135 | "node_modules/nopt": { 1136 | "version": "1.0.10", 1137 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", 1138 | "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", 1139 | "dev": true, 1140 | "dependencies": { 1141 | "abbrev": "1" 1142 | }, 1143 | "bin": { 1144 | "nopt": "bin/nopt.js" 1145 | }, 1146 | "engines": { 1147 | "node": "*" 1148 | } 1149 | }, 1150 | "node_modules/normalize-path": { 1151 | "version": "3.0.0", 1152 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1153 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1154 | "dev": true, 1155 | "engines": { 1156 | "node": ">=0.10.0" 1157 | } 1158 | }, 1159 | "node_modules/object-inspect": { 1160 | "version": "1.13.1", 1161 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", 1162 | "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", 1163 | "funding": { 1164 | "url": "https://github.com/sponsors/ljharb" 1165 | } 1166 | }, 1167 | "node_modules/on-finished": { 1168 | "version": "2.4.1", 1169 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 1170 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 1171 | "dependencies": { 1172 | "ee-first": "1.1.1" 1173 | }, 1174 | "engines": { 1175 | "node": ">= 0.8" 1176 | } 1177 | }, 1178 | "node_modules/otplib": { 1179 | "version": "12.0.1", 1180 | "resolved": "https://registry.npmjs.org/otplib/-/otplib-12.0.1.tgz", 1181 | "integrity": "sha512-xDGvUOQjop7RDgxTQ+o4pOol0/3xSZzawTiPKRrHnQWAy0WjhNs/5HdIDJCrqC4MBynmjXgULc6YfioaxZeFgg==", 1182 | "dependencies": { 1183 | "@otplib/core": "^12.0.1", 1184 | "@otplib/preset-default": "^12.0.1", 1185 | "@otplib/preset-v11": "^12.0.1" 1186 | } 1187 | }, 1188 | "node_modules/p-limit": { 1189 | "version": "2.3.0", 1190 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", 1191 | "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", 1192 | "dependencies": { 1193 | "p-try": "^2.0.0" 1194 | }, 1195 | "engines": { 1196 | "node": ">=6" 1197 | }, 1198 | "funding": { 1199 | "url": "https://github.com/sponsors/sindresorhus" 1200 | } 1201 | }, 1202 | "node_modules/p-locate": { 1203 | "version": "4.1.0", 1204 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", 1205 | "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", 1206 | "dependencies": { 1207 | "p-limit": "^2.2.0" 1208 | }, 1209 | "engines": { 1210 | "node": ">=8" 1211 | } 1212 | }, 1213 | "node_modules/p-try": { 1214 | "version": "2.2.0", 1215 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 1216 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", 1217 | "engines": { 1218 | "node": ">=6" 1219 | } 1220 | }, 1221 | "node_modules/parseurl": { 1222 | "version": "1.3.3", 1223 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1224 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 1225 | "engines": { 1226 | "node": ">= 0.8" 1227 | } 1228 | }, 1229 | "node_modules/path-exists": { 1230 | "version": "4.0.0", 1231 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1232 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1233 | "engines": { 1234 | "node": ">=8" 1235 | } 1236 | }, 1237 | "node_modules/path-to-regexp": { 1238 | "version": "0.1.7", 1239 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1240 | "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" 1241 | }, 1242 | "node_modules/picomatch": { 1243 | "version": "2.3.1", 1244 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1245 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1246 | "dev": true, 1247 | "engines": { 1248 | "node": ">=8.6" 1249 | }, 1250 | "funding": { 1251 | "url": "https://github.com/sponsors/jonschlinkert" 1252 | } 1253 | }, 1254 | "node_modules/pngjs": { 1255 | "version": "5.0.0", 1256 | "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", 1257 | "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==", 1258 | "engines": { 1259 | "node": ">=10.13.0" 1260 | } 1261 | }, 1262 | "node_modules/possible-typed-array-names": { 1263 | "version": "1.0.0", 1264 | "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", 1265 | "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", 1266 | "engines": { 1267 | "node": ">= 0.4" 1268 | } 1269 | }, 1270 | "node_modules/proxy-addr": { 1271 | "version": "2.0.7", 1272 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 1273 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 1274 | "dependencies": { 1275 | "forwarded": "0.2.0", 1276 | "ipaddr.js": "1.9.1" 1277 | }, 1278 | "engines": { 1279 | "node": ">= 0.10" 1280 | } 1281 | }, 1282 | "node_modules/pstree.remy": { 1283 | "version": "1.1.8", 1284 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", 1285 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", 1286 | "dev": true 1287 | }, 1288 | "node_modules/qrcode": { 1289 | "version": "1.5.3", 1290 | "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.3.tgz", 1291 | "integrity": "sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg==", 1292 | "dependencies": { 1293 | "dijkstrajs": "^1.0.1", 1294 | "encode-utf8": "^1.0.3", 1295 | "pngjs": "^5.0.0", 1296 | "yargs": "^15.3.1" 1297 | }, 1298 | "bin": { 1299 | "qrcode": "bin/qrcode" 1300 | }, 1301 | "engines": { 1302 | "node": ">=10.13.0" 1303 | } 1304 | }, 1305 | "node_modules/qs": { 1306 | "version": "6.11.0", 1307 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", 1308 | "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", 1309 | "dependencies": { 1310 | "side-channel": "^1.0.4" 1311 | }, 1312 | "engines": { 1313 | "node": ">=0.6" 1314 | }, 1315 | "funding": { 1316 | "url": "https://github.com/sponsors/ljharb" 1317 | } 1318 | }, 1319 | "node_modules/range-parser": { 1320 | "version": "1.2.1", 1321 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1322 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 1323 | "engines": { 1324 | "node": ">= 0.6" 1325 | } 1326 | }, 1327 | "node_modules/raw-body": { 1328 | "version": "2.5.2", 1329 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", 1330 | "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", 1331 | "dependencies": { 1332 | "bytes": "3.1.2", 1333 | "http-errors": "2.0.0", 1334 | "iconv-lite": "0.4.24", 1335 | "unpipe": "1.0.0" 1336 | }, 1337 | "engines": { 1338 | "node": ">= 0.8" 1339 | } 1340 | }, 1341 | "node_modules/readdirp": { 1342 | "version": "3.6.0", 1343 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1344 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1345 | "dev": true, 1346 | "dependencies": { 1347 | "picomatch": "^2.2.1" 1348 | }, 1349 | "engines": { 1350 | "node": ">=8.10.0" 1351 | } 1352 | }, 1353 | "node_modules/require-directory": { 1354 | "version": "2.1.1", 1355 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 1356 | "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", 1357 | "engines": { 1358 | "node": ">=0.10.0" 1359 | } 1360 | }, 1361 | "node_modules/require-main-filename": { 1362 | "version": "2.0.0", 1363 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", 1364 | "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" 1365 | }, 1366 | "node_modules/safe-buffer": { 1367 | "version": "5.2.1", 1368 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1369 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1370 | "funding": [ 1371 | { 1372 | "type": "github", 1373 | "url": "https://github.com/sponsors/feross" 1374 | }, 1375 | { 1376 | "type": "patreon", 1377 | "url": "https://www.patreon.com/feross" 1378 | }, 1379 | { 1380 | "type": "consulting", 1381 | "url": "https://feross.org/support" 1382 | } 1383 | ] 1384 | }, 1385 | "node_modules/safer-buffer": { 1386 | "version": "2.1.2", 1387 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1388 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1389 | }, 1390 | "node_modules/semver": { 1391 | "version": "7.6.0", 1392 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", 1393 | "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", 1394 | "dependencies": { 1395 | "lru-cache": "^6.0.0" 1396 | }, 1397 | "bin": { 1398 | "semver": "bin/semver.js" 1399 | }, 1400 | "engines": { 1401 | "node": ">=10" 1402 | } 1403 | }, 1404 | "node_modules/send": { 1405 | "version": "0.18.0", 1406 | "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", 1407 | "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", 1408 | "dependencies": { 1409 | "debug": "2.6.9", 1410 | "depd": "2.0.0", 1411 | "destroy": "1.2.0", 1412 | "encodeurl": "~1.0.2", 1413 | "escape-html": "~1.0.3", 1414 | "etag": "~1.8.1", 1415 | "fresh": "0.5.2", 1416 | "http-errors": "2.0.0", 1417 | "mime": "1.6.0", 1418 | "ms": "2.1.3", 1419 | "on-finished": "2.4.1", 1420 | "range-parser": "~1.2.1", 1421 | "statuses": "2.0.1" 1422 | }, 1423 | "engines": { 1424 | "node": ">= 0.8.0" 1425 | } 1426 | }, 1427 | "node_modules/send/node_modules/ms": { 1428 | "version": "2.1.3", 1429 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1430 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 1431 | }, 1432 | "node_modules/serve-static": { 1433 | "version": "1.15.0", 1434 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", 1435 | "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", 1436 | "dependencies": { 1437 | "encodeurl": "~1.0.2", 1438 | "escape-html": "~1.0.3", 1439 | "parseurl": "~1.3.3", 1440 | "send": "0.18.0" 1441 | }, 1442 | "engines": { 1443 | "node": ">= 0.8.0" 1444 | } 1445 | }, 1446 | "node_modules/set-blocking": { 1447 | "version": "2.0.0", 1448 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 1449 | "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" 1450 | }, 1451 | "node_modules/set-function-length": { 1452 | "version": "1.2.2", 1453 | "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", 1454 | "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", 1455 | "dependencies": { 1456 | "define-data-property": "^1.1.4", 1457 | "es-errors": "^1.3.0", 1458 | "function-bind": "^1.1.2", 1459 | "get-intrinsic": "^1.2.4", 1460 | "gopd": "^1.0.1", 1461 | "has-property-descriptors": "^1.0.2" 1462 | }, 1463 | "engines": { 1464 | "node": ">= 0.4" 1465 | } 1466 | }, 1467 | "node_modules/setprototypeof": { 1468 | "version": "1.2.0", 1469 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 1470 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" 1471 | }, 1472 | "node_modules/side-channel": { 1473 | "version": "1.0.6", 1474 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", 1475 | "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", 1476 | "dependencies": { 1477 | "call-bind": "^1.0.7", 1478 | "es-errors": "^1.3.0", 1479 | "get-intrinsic": "^1.2.4", 1480 | "object-inspect": "^1.13.1" 1481 | }, 1482 | "engines": { 1483 | "node": ">= 0.4" 1484 | }, 1485 | "funding": { 1486 | "url": "https://github.com/sponsors/ljharb" 1487 | } 1488 | }, 1489 | "node_modules/simple-update-notifier": { 1490 | "version": "2.0.0", 1491 | "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", 1492 | "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", 1493 | "dev": true, 1494 | "dependencies": { 1495 | "semver": "^7.5.3" 1496 | }, 1497 | "engines": { 1498 | "node": ">=10" 1499 | } 1500 | }, 1501 | "node_modules/statuses": { 1502 | "version": "2.0.1", 1503 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 1504 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 1505 | "engines": { 1506 | "node": ">= 0.8" 1507 | } 1508 | }, 1509 | "node_modules/string-width": { 1510 | "version": "4.2.3", 1511 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1512 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1513 | "dependencies": { 1514 | "emoji-regex": "^8.0.0", 1515 | "is-fullwidth-code-point": "^3.0.0", 1516 | "strip-ansi": "^6.0.1" 1517 | }, 1518 | "engines": { 1519 | "node": ">=8" 1520 | } 1521 | }, 1522 | "node_modules/strip-ansi": { 1523 | "version": "6.0.1", 1524 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1525 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1526 | "dependencies": { 1527 | "ansi-regex": "^5.0.1" 1528 | }, 1529 | "engines": { 1530 | "node": ">=8" 1531 | } 1532 | }, 1533 | "node_modules/supports-color": { 1534 | "version": "5.5.0", 1535 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1536 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1537 | "dev": true, 1538 | "dependencies": { 1539 | "has-flag": "^3.0.0" 1540 | }, 1541 | "engines": { 1542 | "node": ">=4" 1543 | } 1544 | }, 1545 | "node_modules/thirty-two": { 1546 | "version": "1.0.2", 1547 | "resolved": "https://registry.npmjs.org/thirty-two/-/thirty-two-1.0.2.tgz", 1548 | "integrity": "sha512-OEI0IWCe+Dw46019YLl6V10Us5bi574EvlJEOcAkB29IzQ/mYD1A6RyNHLjZPiHCmuodxvgF6U+vZO1L15lxVA==", 1549 | "engines": { 1550 | "node": ">=0.2.6" 1551 | } 1552 | }, 1553 | "node_modules/to-regex-range": { 1554 | "version": "5.0.1", 1555 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1556 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1557 | "dev": true, 1558 | "dependencies": { 1559 | "is-number": "^7.0.0" 1560 | }, 1561 | "engines": { 1562 | "node": ">=8.0" 1563 | } 1564 | }, 1565 | "node_modules/toidentifier": { 1566 | "version": "1.0.1", 1567 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 1568 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 1569 | "engines": { 1570 | "node": ">=0.6" 1571 | } 1572 | }, 1573 | "node_modules/touch": { 1574 | "version": "3.1.0", 1575 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", 1576 | "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", 1577 | "dev": true, 1578 | "dependencies": { 1579 | "nopt": "~1.0.10" 1580 | }, 1581 | "bin": { 1582 | "nodetouch": "bin/nodetouch.js" 1583 | } 1584 | }, 1585 | "node_modules/type-is": { 1586 | "version": "1.6.18", 1587 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1588 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1589 | "dependencies": { 1590 | "media-typer": "0.3.0", 1591 | "mime-types": "~2.1.24" 1592 | }, 1593 | "engines": { 1594 | "node": ">= 0.6" 1595 | } 1596 | }, 1597 | "node_modules/undefsafe": { 1598 | "version": "2.0.5", 1599 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", 1600 | "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", 1601 | "dev": true 1602 | }, 1603 | "node_modules/unpipe": { 1604 | "version": "1.0.0", 1605 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1606 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", 1607 | "engines": { 1608 | "node": ">= 0.8" 1609 | } 1610 | }, 1611 | "node_modules/util": { 1612 | "version": "0.12.5", 1613 | "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", 1614 | "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", 1615 | "dependencies": { 1616 | "inherits": "^2.0.3", 1617 | "is-arguments": "^1.0.4", 1618 | "is-generator-function": "^1.0.7", 1619 | "is-typed-array": "^1.1.3", 1620 | "which-typed-array": "^1.1.2" 1621 | } 1622 | }, 1623 | "node_modules/utils-merge": { 1624 | "version": "1.0.1", 1625 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1626 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", 1627 | "engines": { 1628 | "node": ">= 0.4.0" 1629 | } 1630 | }, 1631 | "node_modules/vary": { 1632 | "version": "1.1.2", 1633 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1634 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", 1635 | "engines": { 1636 | "node": ">= 0.8" 1637 | } 1638 | }, 1639 | "node_modules/which-module": { 1640 | "version": "2.0.1", 1641 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", 1642 | "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" 1643 | }, 1644 | "node_modules/which-typed-array": { 1645 | "version": "1.1.15", 1646 | "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", 1647 | "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", 1648 | "dependencies": { 1649 | "available-typed-arrays": "^1.0.7", 1650 | "call-bind": "^1.0.7", 1651 | "for-each": "^0.3.3", 1652 | "gopd": "^1.0.1", 1653 | "has-tostringtag": "^1.0.2" 1654 | }, 1655 | "engines": { 1656 | "node": ">= 0.4" 1657 | }, 1658 | "funding": { 1659 | "url": "https://github.com/sponsors/ljharb" 1660 | } 1661 | }, 1662 | "node_modules/wrap-ansi": { 1663 | "version": "6.2.0", 1664 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", 1665 | "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", 1666 | "dependencies": { 1667 | "ansi-styles": "^4.0.0", 1668 | "string-width": "^4.1.0", 1669 | "strip-ansi": "^6.0.0" 1670 | }, 1671 | "engines": { 1672 | "node": ">=8" 1673 | } 1674 | }, 1675 | "node_modules/y18n": { 1676 | "version": "4.0.3", 1677 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", 1678 | "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" 1679 | }, 1680 | "node_modules/yallist": { 1681 | "version": "4.0.0", 1682 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 1683 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" 1684 | }, 1685 | "node_modules/yargs": { 1686 | "version": "15.4.1", 1687 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", 1688 | "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", 1689 | "dependencies": { 1690 | "cliui": "^6.0.0", 1691 | "decamelize": "^1.2.0", 1692 | "find-up": "^4.1.0", 1693 | "get-caller-file": "^2.0.1", 1694 | "require-directory": "^2.1.1", 1695 | "require-main-filename": "^2.0.0", 1696 | "set-blocking": "^2.0.0", 1697 | "string-width": "^4.2.0", 1698 | "which-module": "^2.0.0", 1699 | "y18n": "^4.0.0", 1700 | "yargs-parser": "^18.1.2" 1701 | }, 1702 | "engines": { 1703 | "node": ">=8" 1704 | } 1705 | }, 1706 | "node_modules/yargs-parser": { 1707 | "version": "18.1.3", 1708 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", 1709 | "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", 1710 | "dependencies": { 1711 | "camelcase": "^5.0.0", 1712 | "decamelize": "^1.2.0" 1713 | }, 1714 | "engines": { 1715 | "node": ">=6" 1716 | } 1717 | } 1718 | } 1719 | } 1720 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rest_api_auth_nodejs", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "nodemon" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "bcryptjs": "^2.4.3", 14 | "express": "^4.19.2", 15 | "jsonwebtoken": "^9.0.2", 16 | "nedb-promises": "^6.2.3", 17 | "node-cache": "^5.1.2", 18 | "otplib": "^12.0.1", 19 | "qrcode": "^1.5.3" 20 | }, 21 | "devDependencies": { 22 | "nodemon": "^3.1.0" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # REST API Authentication and Authorization with Node.js 2 | 3 | Build a complete REST API authentication and authorization, with JSON web tokens (JWT), refresh tokens and two-factor authentication, using Node.js and Express. 4 | 5 | ### Version: 1.0.0 6 | 7 | ### Usage 8 | 9 | ```sh 10 | $ npm install 11 | ``` 12 | 13 | ```sh 14 | $ npm start 15 | ``` --------------------------------------------------------------------------------