Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
#8
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindvnair99 committed Oct 22, 2018
1 parent 301f27b commit 55bc3f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions functions/views/nav.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
function initApp() {
firebase.auth().onAuthStateChanged(function (user) {
if (user) {
var d = new Date();
if ((d.getTime() - Date.parse(user.metadata.lastSignInTime)) > 900000) {
alert("Please login again. Session expired.")
firebase.auth().signOut();
}
var displayName = user.displayName;
var email = user.email;
var uid = user.uid;
Expand Down

0 comments on commit 55bc3f4

Please sign in to comment.