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.
35 Replies
Mayor McCheese
Are you using a custom login token? Or trying to?
Alex B. Rodriguez
No just the pre-populated info on fire base and trying to hard code in visual Studios
Mayor McCheese
It should be fairly straightforward, can you post the code you are having trouble with? Don't post your json token
Alex B. Rodriguez
Absolutely
Mayor McCheese
I'm on my phone right now, so I might need to move to a bigger screen to look
Alex B. Rodriguez
I appreciate you assisting me with this matter
Mayor McCheese
My firebase/store experience is likely dated Just to be clear But I'll do my best
Mayor McCheese
You have your json token in that btw
Alex B. Rodriguez
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
Things like tokens are important to keep secret
Alex B. Rodriguez
it was the API key right that I need to be descreat with
Mayor McCheese
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
that was my fault my bad
Mayor McCheese
What type of blazor app will this be? wasm or?
Alex B. Rodriguez
webbased application
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
Mayor McCheese
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 User3d ago
Message Not Public
Sign In & Join Server To View
Mayor McCheese
At least in c# land yeah C# is a fourth class citizen where libs are concerned
Alex B. Rodriguez
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
it won't work
No description
No description
No description
No description
Alex B. Rodriguez
blazor web app
Mayor McCheese
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
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
nothing shows or happens / updates at all when I click the login
No description
Alex B. Rodriguez
this login takes me to login page and the second does absolutely nothing
Alex B. Rodriguez
it's like the <a href tag navigates as desired but the buttons do not work at all
Mayor McCheese
How are you registering the js interop?
Alex B. Rodriguez
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 McCheesethis hour
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 User16h ago
Message Not Public
Sign In & Join Server To View
Alex B. Rodriguez
just to connnect for a simple login API and database for retaining information pertaining to that login
Unknown User
Unknown User7h ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?