I noticed there wasn’t a single comprehensive guide (since things are changing so rapdly), so hopefully the tutorial I wrote will help anyone looking to implement their own custom auth. At the very least its a good crash-course on the dance between
@redwood/web to perform authentication.
The demo URL and source code can be found in the tutorial: https://patrickgallagher.dev/blog/2020/12/27/tutorial-redwood-web3-login/tutorial-add-web3-login-to-redwoodjs
Please let me know if you have any comments or suggestions!
I am also considering contributing this to redwood. Some questions for this:
- Should I contribute the client portion to
@redwood/auth? I’ll need to write a separate package for this, but don’t mind the small lift.
- Should I contribute the server/web portion to a new web3 generator like in this firebase generator example? Alternatively should I contribute to the custom auth generator instead?
- Should I adapt this to a cookbook or tutorial in the official docs?
Shoutout to the amazing Redwood team. This is slowly become part of my core stack!