Browse Source

Some minor fixes in authorized-https-endpoint README

Change-Id: I7048c89d278b51da1c8e4f9c96063e84bc78deb7
master
Nicolas Garnier 8 years ago
parent
commit
8dc0081070
  1. 2
      authorized-https-endpoint/README.md
  2. 1
      authorized-https-endpoint/functions/index.js
  3. 2
      fcm-notifications/public/firebase-messaging-sw.js

2
authorized-https-endpoint/README.md

@ -27,7 +27,7 @@ This sample comes with a web-based UI for testing the function. To test it out:
1. Deploy your project using `firebase deploy`
1. Open the app using `firebase open hosting:site`, this will open a browser.
1. Sign in the web app in the browser using Google Sign-In and delete your account using the button on the web app. You should receive email confirmations for each actions.
1. Sign in the web app in the browser using Google Sign-In and two authenticated requests will be performed from the client and the result will be displayed on the page, normally "Hello <user displayname>".
## Contributing

1
authorized-https-endpoint/functions/index.js

@ -29,7 +29,6 @@ const app = express();
// when decoded successfully, the ID Token content will be added as `req.user`.
const validateFirebaseIdToken = (req, res, next) => {
console.log('Check if request is authorized with Firebase ID token');
console.log('headers', req.headers);
if ((!req.headers.authorization || !req.headers.authorization.startsWith('Bearer ')) &&
!req.cookies.__session) {

2
fcm-notifications/public/firebase-messaging-sw.js

@ -6,5 +6,3 @@ importScripts('/__/firebase/3.9.0/firebase-messaging.js');
importScripts('/__/firebase/init.js');
firebase.messaging();

Loading…
Cancel
Save