Your guide to server side authentication with Firebase

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024

Комментарии • 18

  • @Firebase
    @Firebase  Год назад

    Watch all the Firebase Summit sessions → goo.gle/firebasesummit2022-all

  • @fahadahmed3242
    @fahadahmed3242 Год назад +15

    Hey @Firebase, can you please share the source code for server rendered website authentication for NextJS?

  • @mistboost5441
    @mistboost5441 7 дней назад

    Hi, what about the dynamic framework support? I am building server api and would like to test using swagger but I need ID token

  • @proflead
    @proflead Месяц назад

    Source code could be useful.

  • @engineeringjoe
    @engineeringjoe Год назад +1

    But how do i log out a user?

  • @DodaGarcia
    @DodaGarcia Год назад

    I love Firebase so much! It made it a lot easier to build a system to track our music video production

  • @ThanHtutZaw3
    @ThanHtutZaw3 Год назад +1

    If I use admin sdk , do I need client sdk ?

    • @bustamantedev
      @bustamantedev Год назад

      You need both. Admin SDK is for the server only.
      The client sdk is still needed from the client. You must get a token directly from Firebase Auth and then send it to the server for creating the session cookie.
      See 9:22

  • @worldwide6626
    @worldwide6626 7 месяцев назад

    How do I sign in the user?

  • @benjaminbalazs
    @benjaminbalazs Год назад +1

    Not sure why they had to put the 2-week cookie expiry limitation. The client SDK doesn't log you out after 2 weeks. Now, we need to redirect the user to the login page on the server, then wait for authStateChange on the client, then renew the cookie so that we can redirect the user back to the original URL on the client side. All this while the user is seeing some pages come and go.

  • @shawn-skull
    @shawn-skull Год назад

    The repo, please.

  • @mpowereer6992
    @mpowereer6992 Год назад

    piwo pije

  • @walder5850
    @walder5850 5 месяцев назад +1

    How to do server-side sign-in from the client. THAT AIN’T SERVER SIDE BUDDY.

  • @DiiiaZoTe
    @DiiiaZoTe Год назад

    What about CSRF then? Are we supposed to handle it ourselves...

    • @aggeloskoulouris
      @aggeloskoulouris Год назад +1

      is your - custom - backend... so YES

    • @maskman4821
      @maskman4821 Год назад

      Yes, you need to handle it yourself 😌

    • @DiiiaZoTe
      @DiiiaZoTe Год назад

      @@maskman4821 Kinda sucks then... since other solutions handle this for you.