Hi, @edjiang, as @morganmspencer noted, there isn’t a custom generator even though the RedwoodJS docs unfortunately do seem to indicate that there is one:
I looked at the auth generator code and it checks a directory of auth templates (auth0, supabase, etc … ie, the ones you note in your command line message) and even looking at the history of the template directory, I do not see that custom every existed.
So, perhaps the generator never could actually generate the custom setup at all – and the docs need to be updated.
You can as @morganmspencer said, setup with another provider and that will get you the updates to:
- index.js
You need something like:
const customClient = <your client>
...
<AuthProvider client={customClient} type="custom">
<RedwoodProvider>
<Routes />
</RedwoodProvider>
</AuthProvider>
and then the changes to graphql and then the auth.js lib.
I’ll raise an issue since the generator really should work with “custom” as while it is somewhat easy to setup the web side, the api side needs the modifications done.
