I have a Redwood app with no api side. I’ve followed these instructions to remove it: Disable API/Database | RedwoodJS Docs. I also removed the Apollo Provider client from the web side.
I have now implemented authentication with Firebase and noticed the web side makes a graphql query call to the get current authenticated user: {"query":"query __REDWOOD__AUTH_GET_CURRENT_USER { redwood { currentUser } }"}
Is there a way I can disable that (see error below)?
{
"errors": [
{
"message": "The RedwoodJS API server is not available or is currently reloading. Please refresh."
}
]
}
I am running the latest and greatest version 7.3. Any help is appreciated!
I need now to spend some more time understanding how the auth flow is implemented. My assumption was that after a successful login, the user would be automatically redirected but this is not happening.
UPDATE: I’ve ended up using the same trick that the “blog tutorial” uses on the LoginPage:
useEffect(() => {
if (isAuthenticated) {
navigate(routes.home())
}
}, [isAuthenticated])
It would be nice to have a custom authentication that allows you to manage the authentication using API Keys.
For example, add a configuration to the dbAuth class that allows the reset and forgot password methods to be disabled. In addition to that also an option that disable the hash function on the password.