Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
aiji42 committed Nov 5, 2021
1 parent 9712cdf commit d9191d2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}`
}
})
```
Expand Down

0 comments on commit d9191d2

Please sign in to comment.