Spaces:
Running
Running
Download models/OAuthApp.js from 4send/messenger: direct link, hf CLI and curl.
- Browser
- Download file 762 Bytes
-
https://huggingface.co/spaces/4send/messenger/resolve/main/models/OAuthApp.js
- Command line
-
hf download hf://spaces/4send/messenger/models/OAuthApp.js
-
curl -L -o OAuthApp.js https://huggingface.co/spaces/4send/messenger/resolve/main/models/OAuthApp.js
762 Bytes
| const mongoose = require('mongoose'); | |
| const OAuthAppSchema = new mongoose.Schema({ | |
| name: { type: String, required: true, maxlength: 48 }, | |
| clientId: { type: String, required: true, unique: true, index: true }, | |
| clientSecretHash: { type: String, default: null }, | |
| redirectUris: { type: [String], default: [] }, | |
| scopes: { type: [String], default: ['profile'] }, | |
| website: { type: String, default: null }, | |
| isPublic: { type: Boolean, default: false }, | |
| active: { type: Boolean, default: true }, | |
| createdBy: { type: String, default: null }, | |
| createdAt: { type: Date, default: Date.now }, | |
| updatedAt: { type: Date, default: Date.now } | |
| }, { collection: 'oauth_apps' }); | |
| module.exports = mongoose.model('OAuthApp', OAuthAppSchema); | |