I recently was having a bear of a time adapting Firebase auth into an existing system (deep development). It just couldn’t get out of its own way. But, today we had a breakthrough, after over a week of wasted money and worse, wasted time. I hope it can help some of you. This was, of course, for an auth issue. But you can adapt it for whatever problem you seem to be looping on.
First, I went to Assistant and prompted…
I want to completely re-write the auth system of this app.
Without making any code changes, tell me everything you know about FIREBASE, TOKEN MANAGEMENT, AUTH PAGES and its functionality, dependencies, imports etc. Be thorough in your investigation, report everything you find, and if you find any discrepancies or possible errors, report them as well. I want you to be SPECIFIC about every file, relationship, endpoint, route etc.
Detail it all in your output back to me.
Then, we will make a plan to go forward.
After this, Assistant gave me a ludicrous amount of information. It truly gave me just what I asked for, every file, endpoint relationship - everything.
I then went to ChatGPT, used 4.5, and said…
This is my current implementation of auth on my app. Please analyze and tell me you understand. I will paste analysis from both Replit Agent and Replit Assistant.
Agent:
[PASTE OF AGENT ANALYSIS]
Assistant:
[PASTE OF ASSISTANT ANALYSIS]
Who did a better and more thorough analysis?
What do you think we should do to clean this up?
For those curious, Agent was terrible. Assistant blew it out of the water at every point. Then, ChatGPT gave me a clear roadmap of what needed to be done to fix the code.
I copied/pasted the entire output from ChatGPT into Agent, and it worked for a very long time, and in the end, my app was fixed - well, we’re back in and making progress, I should say.
I hope this helps some of you. Try it and let me know how you get on with it.