mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 05:11:34 +02:00
Set Prettier's "trailingComma" setting to "es5" GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
25 lines
466 B
JavaScript
25 lines
466 B
JavaScript
const mongoose = require('../infrastructure/Mongoose')
|
|
|
|
const { Schema } = mongoose
|
|
|
|
const OauthApplicationSchema = new Schema(
|
|
{
|
|
id: String,
|
|
clientSecret: String,
|
|
grants: [String],
|
|
name: String,
|
|
redirectUris: [String],
|
|
scopes: [String],
|
|
},
|
|
{
|
|
collection: 'oauthApplications',
|
|
}
|
|
)
|
|
|
|
exports.OauthApplication = mongoose.model(
|
|
'OauthApplication',
|
|
OauthApplicationSchema
|
|
)
|
|
|
|
exports.OauthApplicationSchema = OauthApplicationSchema
|