@scvo/router
Advanced tools
Comparing version
@@ -37,2 +37,5 @@ "use strict"; | ||
const app = this.apps[appName]; | ||
routeMatch.log('ID TOKEN -> Length:', idToken.length, '\nToken:', idToken); | ||
const cookie = yield app.auth().createSessionCookie(idToken, { expiresIn: 20160 }); | ||
routeMatch.log('SESSION COOKIE-> Length:', cookie.length, '\nToken:', cookie); | ||
let decodedToken; | ||
@@ -39,0 +42,0 @@ try { |
{ | ||
"name": "@scvo/router", | ||
"version": "1.2.18", | ||
"version": "1.2.19", | ||
"description": "A lightweight routing engine based around the idea that complex web apps can be entirely written using only configuration and templating", | ||
@@ -5,0 +5,0 @@ "main": "./build/index", |
@@ -38,2 +38,9 @@ import * as firebase from 'firebase-admin'; | ||
const app = this.apps[appName]; | ||
routeMatch.log('ID TOKEN -> Length:', idToken.length, '\nToken:', idToken); | ||
const cookie = | ||
await app.auth().createSessionCookie(idToken, {expiresIn: 20160}); | ||
routeMatch.log( | ||
'SESSION COOKIE-> Length:', cookie.length, '\nToken:', cookie); | ||
let decodedToken: undefined|firebase.auth.DecodedIdToken; | ||
@@ -40,0 +47,0 @@ try { |
Sorry, the diff of this file is not supported yet
352323
0.23%4471
0.18%