Posts

Implementing Passport authentication with promises

Image
up vote 0 down vote favorite Here is code implementing Passport authentication with a Google Strategy. It uses Mongoose to store and retrieve user data. You might need to be familiar with both of these technologies to review this code if not check out the two links I provided. I have included only the Passport file. I was told I am not using promises correctly and would like to rectify this if it is in fact true. The code is full of comments below. Please let me know if more clarification or context is needed. Thanks for any feedback. Passport const passport = require('passport'); const GoogleStrategy = require('passport-google-oauth').OAuth2Strategy; const DBM = require('../../database/mongoose'); const helper = require('../../config/helper'); // review this post // https://stacko...

How best to view the current time while gaming on iPad?

Image
up vote 9 down vote favorite On iOS, in my case the iPad Air 2, games typically run in fullscreen, i.e. the status bar at the top is hidden. If I want to view the time, I have to pull down the Notification Center, which requires two swipes near the center of the upper edge of the screen, which in turn typically requires changing the grip on the device. Is there any more convenient way to view the time during gameplay? Maybe even continously displaying the clock? ios ipad fullscreen games time share | improve this question edited Nov 22 at 16:29 Nimesh Neema 14.2k 4 37 71 ...