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

feat: authentication with jwt

This commit is contained in:
Saad Jutt
2021-11-02 03:13:16 +05:00
parent f1e464d4a4
commit 22dfcfddb9
12 changed files with 13816 additions and 53 deletions

14
src/model/Client.ts Normal file
View File

@@ -0,0 +1,14 @@
import mongoose from 'mongoose'
const clientSchema = new mongoose.Schema({
clientid: {
type: String,
required: true
},
clientsecret: {
type: String,
required: true
}
})
export default mongoose.model('Client', clientSchema)