1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-11 16:20:06 +00:00

chore: refactored, added instance + static methods to models

This commit is contained in:
Saad Jutt
2021-11-09 03:46:39 +05:00
parent 2fe9d5ca9c
commit d3fef0f973
6 changed files with 51 additions and 24 deletions

View File

@@ -1,6 +1,5 @@
import express from 'express'
import mongoose from 'mongoose'
import jwt from 'jsonwebtoken'
import AuthController from '../../controllers/auth'
import Client from '../../model/Client'
@@ -10,12 +9,7 @@ import {
authenticateRefreshToken
} from '../../middlewares'
import {
authorizeValidation,
removeTokensInDB,
saveTokensInDB,
tokenValidation
} from '../../utils'
import { authorizeValidation, tokenValidation } from '../../utils'
import { InfoJWT } from '../../types'
const authRouter = express.Router()