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