✅ Firebase and Blazor assistance

Good afternoon I am sorry to bother but at this point I feel that I have completely exhausted all of my recourses, I have been having issues with a project integrating firebase login and I have been stuck on this for the past 13 days and have gotten nowhere, I have used AI, youtube, fullstack, w3schools, and many other recorces including additional discord chanels much like this one. If anyone could assist me and walk me through what I may be doing wrong based on my code I would be extremely grateful.
37 Replies
Mayor McCheese
Mayor McCheese2mo ago
Are you using a custom login token? Or trying to?
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
No just the pre-populated info on fire base and trying to hard code in visual Studios
Mayor McCheese
Mayor McCheese2mo ago
It should be fairly straightforward, can you post the code you are having trouble with? Don't post your json token
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
Absolutely
Mayor McCheese
Mayor McCheese2mo ago
I'm on my phone right now, so I might need to move to a bigger screen to look
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
I appreciate you assisting me with this matter
Mayor McCheese
Mayor McCheese2mo ago
My firebase/store experience is likely dated Just to be clear But I'll do my best
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
No description
No description
No description
No description
Mayor McCheese
Mayor McCheese2mo ago
You have your json token in that btw
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
Any help is much appreciated, I have been stuck on this for almost 2 weeks and nothing I have done seems to work oh dang I am sorry let me repost that I'll try to white that out
Mayor McCheese
Mayor McCheese2mo ago
Things like tokens are important to keep secret
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
it was the API key right that I need to be descreat with
Mayor McCheese
Mayor McCheese2mo ago
Yeah You should be able to use it as a file too for instance Tbh at this point you should consider that token compromised and generate a new one
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
that was my fault my bad
Mayor McCheese
Mayor McCheese2mo ago
What type of blazor app will this be? wasm or?
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
webbased application
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Mayor McCheese
Mayor McCheese2mo ago
The reason I ask is you've got your token embedded and you're using a js library that you're bringing in with js interop Embedding the JSON is potentially readable by the client Also there's a firebase nuget package
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Mayor McCheese
Mayor McCheese2mo ago
At least in c# land yeah C# is a fourth class citizen where libs are concerned
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
I have 3 folders and followed the necessary steps and my login button still won't work I will create a new token once I get this to work
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
it won't work
No description
No description
No description
No description
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
blazor web app
Mayor McCheese
Mayor McCheese2mo ago
For something like login, ideally you're controlling everything on the server. You'd ship the username and password to your backend, and use wherever token from that point What errors are you getting?
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
so now it doesn't even look lik ethe button is working at all on the login page it's extremely frustrating I even just ried running this @page "/login" <div class="login-page"> <h2>Login</h2> <button @onclick="HandleLogin">Login</button> </div> @if (isClicked) { <p>Button clicked!</p> } @code { private bool isClicked = false; private void HandleLogin() { isClicked = true; } }
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
nothing shows or happens / updates at all when I click the login
No description
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
this login takes me to login page and the second does absolutely nothing
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
No description
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
it's like the <a href tag navigates as desired but the buttons do not work at all
Mayor McCheese
Mayor McCheese2mo ago
How are you registering the js interop?
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
I don't even know this is do today and no one has been able to help me I am still very new to this terminology but whatever it is it's not working I don't know how this js interop should be registered
Mayor McCheese
Mayor McCheese2mo ago
from a .net perspective it'll be hard to help since you're using the js interop, it "looks right" at least it reads right I've only used firebase on the backend and not tried it via a js interop
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Alex B. Rodriguez
Alex B. RodriguezOP2mo ago
just to connnect for a simple login API and database for retaining information pertaining to that login
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Mayor McCheese
Mayor McCheese2mo ago
Unless you're taking advantage of firebase offerings you're just hurting yourself
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?