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:
14
src/model/Client.ts
Normal file
14
src/model/Client.ts
Normal 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)
|
||||
Reference in New Issue
Block a user