Secbone / koa-session2

Middleware for Koa2 to get/set session
MIT License
153 stars 30 forks source link

How can I use it with Firebase? #57

Open baorv opened 5 years ago

Secbone commented 4 years ago

@baorv I did not develop with firebase before, is there any problem?

baorv commented 4 years ago

Firebase Hosting strips all cookies from the request other than __session. So I can't use cookies that send from the client. You can see from this topic: https://stackoverflow.com/a/44935288

Secbone commented 4 years ago

@baorv did your try to set session key to __session ?

app.use(session({
    key: '__session',
}));