This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import mongoose from "mongoose"; | |
| function getConnection(databaseURL, connectionListeners) { | |
| return mongoose.connection; | |
| } | |
| async function openConnection(databaseURL, options) { | |
| await mongoose.connect(databaseURL, options); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as coda from "@codahq/packs-sdk"; | |
| export const pack = coda.newPack(); | |
| pack.setUserAuthentication({ | |
| type: coda.AuthenticationType.OAuth2, | |
| authorizationUrl: "https://accounts.google.com/o/oauth2/v2/auth", // see https://developers.google.com/identity/protocols/oauth2/web-server#creatingclient | |
| tokenUrl: "https://oauth2.googleapis.com/token", // see https://developers.google.com/identity/protocols/oauth2/web-server#exchange-authorization-code | |
| scopes: [ | |
| // add any scopes your project requires to access user data from their Google Account |
NewerOlder