NextJS + Firebase App Hosting SSR Issue

69 views
Skip to first unread message

Syed Raza (Rizz3D)

unread,
Jun 6, 2024, 9:59:12 AMJun 6
to Firebase Google Group
Im having issue using getServerSideProps, context is always empty
I tried saving & sending cookies to do firebase auth serverside (like named: token, auth, session, _session, __session) but context is never populated

Is this a bug or unimplemented feature!?!?

setCookie(null, 'session', idToken, {
            maxAge: 30 * 24 * 60 * 60, // 30 days
            path: '/',
            secure: true,
            sameSite: 'lax'
        });
        setCookie(null, '_session', idToken, {
          maxAge: 30 * 24 * 60 * 60, // 30 days
          path: '/',
          secure: true,
          sameSite: 'lax'
        });
        setCookie(null, '__session', idToken, {
          maxAge: 30 * 24 * 60 * 60, // 30 days
          path: '/',
          secure: true,
          sameSite: 'lax'
        });

Pedro Fumero

unread,
Jun 11, 2024, 1:28:18 AMJun 11
to Firebase Google Group
Same issue here.
Reply all
Reply to author
Forward
0 new messages