-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated server to use forge api modules
- Loading branch information
Showing
4 changed files
with
88 additions
and
123 deletions.
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const authServer = require('./server'); | ||
|
||
/* | ||
Look at this for fetching new auth tokens in a loop: | ||
https://nodejs.org/en/docs/guides/timers-in-node/ | ||
*/ | ||
|
||
function intervalFunc() { | ||
console.log('Running every 15 sec'); | ||
} | ||
|
||
(async () => { | ||
let server = await authServer.create(); | ||
})(); | ||
|
||
/* | ||
Testing setInterval function, will likely need to use this for refreshing auth tokens | ||
*/ | ||
setInterval(intervalFunc, 15000); |
2cecd17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use
node test.js
to run the server