-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
40 lines (28 loc) · 1.36 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// This file contains the configuration options for this sample app.
export const config = {};
// The secret used to sign cookies for user session data, should be changed.
config.sessionSecret = 'photo frame sample';
// The OAuth client ID from the Google Developers console.
config.oAuthClientID = 'ADD YOUR CLIENT ID';
// The OAuth client secret from the Google Developers console.
config.oAuthclientSecret = 'ADD YOUR CLIENT SECRET';
// The callback to use for OAuth requests. This is the URL where the app is
// running. For testing and running it locally, use 127.0.0.1.
config.oAuthCallbackUrl = 'http://127.0.0.1:8080/auth/google/callback';
// The port where the app should listen for requests.
config.port = 8080;
// The scopes to request. The app requires the photoslibrary.readonly and
// profile (was plus.me) scopes.
// https://developers.google.com/photos/library/guides/authorization
config.scopes = [
'https://www.googleapis.com/auth/photoslibrary.readonly',
'profile',
];
// The number of photos to load for search requests.
config.photosToLoad = 150;
// The page size to use for search requests. 100 is reccommended.
config.searchPageSize = 100;
// The page size to use for the listing albums request. 50 is reccommended.
config.albumPageSize = 100;
// The API end point to use. Do not change.
config.apiEndpoint = 'https://photoslibrary.googleapis.com';