Next.js Discord

Discord Forum

Getting around auth

Unanswered
Frank posted this in #help-forum
Open in Discord
For those of you who are building web apps and use the chrome plugin or agent-browser to verify changes, how do you get past authentication? In other words all of my apps have Google Auth baked into them and all of the agents get stuck at login. It seems like there always needs to be a human in the loop but there has to be a solution to this. Somebody has to have solved this already.

10 Replies

I thought about that because most of the time it's just running on local host
But is that literally what people are doing? 😂
@Polar bear If you're testing in a non-production environment you can just let agents bypass auth
Polar bear
This only applies if you're doing multiple agents though
depending on your harness, it should remember the auth cookie and you only ever need to login once for the agent
I'm typically using Codex.
I will usually use their built in Chrome extension. It drives well but typically his the auth wall unless I login first and tell it to use my profile where the tabs authed in.
Polar bear
I know that agent-browser supports the ability to save auth state and pass it in when opening websites via the --state param
I’ll ask my clanker about this. Thanks Ryan.