Next.js Discord

Discord Forum

Firebase admin with middleware.ts

Answered
dracovisk_ posted this in #help-forum
Open in Discord
Is this possible to protect routes with middleware and firebase authentication?
Answered by dracovisk_
I managed to implement it with next-auth and middleware, thank you @Sloth bear
View full answer

5 Replies

Sloth bear
I've tried doing so with server-side cookies, and it almost work, but I'm blocked by edge runtine which is a big disappointement
why were you blocked?
can u show a snipped code?
I managed to implement it with next-auth and middleware, thank you @Sloth bear
Answer