How to use Firebase Auth with Astro

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 พ.ย. 2024

ความคิดเห็น • 18

  • @dannyhenning8395
    @dannyhenning8395 2 หลายเดือนก่อน

    Awesome man! Seems like a great course, I feel like it would be useful for many of you added in a module about adding Stripe as well as most web apps, SaaS, etc would require payments somehow

  • @friendly__drone9352
    @friendly__drone9352 4 หลายเดือนก่อน +3

    I"m loving these Astro videos!

    • @CodinginPublic
      @CodinginPublic  4 หลายเดือนก่อน

      Glad you like them! Go Astro!

  • @SabahRahal-m2q
    @SabahRahal-m2q 4 หลายเดือนก่อน

    Excellent video, I followed the steps and I have a problem, when I log in and enter from another session (any other device), the application understands as if I were logged in, any recommendations?

  • @lostinthenarrativve
    @lostinthenarrativve 4 หลายเดือนก่อน +3

    Hey man, can you do supabase+Astro next? or lucia.

    • @emireles
      @emireles 3 หลายเดือนก่อน

      In case you or someone else tries this. I encountered an issue when trying this with Supabase where the error would not pass down from the action since it comes wrapped in a AuthError class. To handle it just use the function isAuthApiError() to check if there is an error returned from the call and then you can throw an ActionError() to actually pass it down the action response when using the .safe() method in the action call.
      Hope this helps someone :)

  • @real_igbo_land
    @real_igbo_land 2 หลายเดือนก่อน

    Hi Chris nice Tutorial. Have been following along to implement your example in one of my own projects but got a XHR POST 404 not found at the /_actions/when logging in or registering. Obviously followed by a JSON Parse error. 😞 Downloaded your finished project file and got the same error. Any idea whats going on?
    Am looking for project documentation on astro actions, but cant really find any. Could you help out?

    • @CodinginPublic
      @CodinginPublic  2 หลายเดือนก่อน

      They switched up actions I think to no longer is the .safe method. So just remove that but keep the { error, data } I think? Let me know if that works!

  • @oktubr3
    @oktubr3 4 หลายเดือนก่อน

    You rock man! Thank you!!!

  • @bobbyb6412
    @bobbyb6412 3 หลายเดือนก่อน

    does this just use firebase for auth? could the rest of your routes / site point to a totally different service?

    • @CodinginPublic
      @CodinginPublic  3 หลายเดือนก่อน +1

      sure, if you want!

  • @Ryujin_001
    @Ryujin_001 3 หลายเดือนก่อน

    Bro after deploy to vercel auth.currentUser is null. Login signup and logout works well but never load the profile page because of the null currentUser

    • @CodinginPublic
      @CodinginPublic  3 หลายเดือนก่อน

      Have you figured this out? I'd likely have to see your code?

  • @palockocz
    @palockocz 4 หลายเดือนก่อน

    Only output server can be used or also output hybrid?

    • @CodinginPublic
      @CodinginPublic  4 หลายเดือนก่อน +1

      Also hybrid. Just make sure you mark routes you need SSR with prerender = false

  • @andersonmarquesbsb
    @andersonmarquesbsb 4 หลายเดือนก่อน

    The best! ⬆⬆

    • @CodinginPublic
      @CodinginPublic  4 หลายเดือนก่อน

      Glad you found it helpful!