From d9191d24a4bffebae28fb263bc69c47e89a17e1f Mon Sep 17 00:00:00 2001 From: Aiji Uejima Date: Sat, 6 Nov 2021 02:35:39 +0900 Subject: [PATCH] docs: update README --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6e83f2f..5b6f4fe 100644 --- a/README.md +++ b/README.md @@ -80,15 +80,12 @@ firebase.auth().onAuthStateChanged(function (user) { // User is signed in. user .getIdToken() - .then( - (token) => - (document.cookie = `${FIREBASE_COOKIE_KEY}=${token}; path=/`) - ) + .then((token) => document.cookie = `${FIREBASE_COOKIE_KEY}=${token}; path=/`) } else { // User is signed out. - document.cookie = `${FIREBASE_COOKIE_KEY}=; path=/; expires=${new Date( - '1999-12-31T23:59:59Z' - ).toUTCString()}` + document.cookie = `${FIREBASE_COOKIE_KEY}=; path=/; expires=${ + new Date('1999-12-31T23:59:59Z').toUTCString() + }` } }) ```