You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ There are weather detection stations situated in and around you. The inner work
24
24
25
25
<br />
26
26
27
-
> Below is the template for a rudimentary completion of an example on interfacing with a weather data provider. <br /><spanstyle="color:green">For indepth logics and real life data implementation, continue to</span> [here](public/README.md).
27
+
> Below is the template for a rudimentary completion of an example on interfacing with a weather data provider. <br /><spanstyle="color:green">For indepth logics and real life data implementation, continue to</span> [HERE!](public/README.md).
28
28
29
29
<br />
30
30
@@ -49,7 +49,7 @@ First, you will need to change your `package.json` to include:
49
49
50
50
Then, use imports in your `index.js`. Here is an express start with dotenv:
51
51
52
-
```c
52
+
```javascript
53
53
importdotenvfrom"dotenv"
54
54
importexpressfrom"express"
55
55
@@ -218,7 +218,7 @@ We will choose [Selenium IDE chrome extension](https://chrome.google.com/webstor
218
218
219
219
4. Install [`selenium-side-runner`](https://www.selenium.dev/selenium-ide/docs/en/introduction/command-line-runner), then run the test script above from the command console.
* Note: Passport google strategy required clientID and clientSecret
25
+
* which can be obtained from registering within your google account.
26
+
* There is a configuration file `keys.js` containing the above info code,
27
+
* which is not part of this source code.
28
+
*
29
+
* Go to https://console.cloud.google.com/ to create your own clientID and clientSecret.
30
+
*/
31
+
passport.use(newGoogleStrategy({
32
+
// options for google strategy
33
+
callbackURL: '/auth/google/redirect',
34
+
clientID: GoogleclientID,
35
+
clientSecret: GoogleclientSecret
36
+
},(accessToken,refreshToken,profile,done)=>{
37
+
// passport callback function
38
+
// console.log('accessToken: ' + accessToken);
39
+
40
+
// console.log(profile);
41
+
42
+
// now that the google profile is here, let's store it in database. However, to avoid duplicates in mongoDB collection, we perform dbase checking first.
0 commit comments