mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 05:11:34 +02:00
Upgrade Mongoose and the Mongo driver in web GitOrigin-RevId: 2cad1aabe57eae424a9e4c68b2e0062f0e78ffaf
26 lines
487 B
JavaScript
26 lines
487 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',
|
|
minimize: false,
|
|
}
|
|
)
|
|
|
|
exports.OauthApplication = mongoose.model(
|
|
'OauthApplication',
|
|
OauthApplicationSchema
|
|
)
|
|
|
|
exports.OauthApplicationSchema = OauthApplicationSchema
|