Reviewers and testers wanted
This project has just moved out of alpha and into beta. It's time to polish things up and prepare the project for a stable release! Help wanted to get things across the line.
About the project:
A light-weight Lightning auth provider for your Next.js app that's entirely self-hosted and plugs seamlessly into the next-auth framework.
Technical review
Focus
If you're a JavaScript or TypeScript engineer, or have an understanding of
React
, OAuth
, lnurl-auth
, Next.js
, next-auth
or OSS in general, you can help by taking a look at the codebase and leaving your thoughts on:In order of importance:
- Security - are there any security concerns that I've overlooked?
- Installation - do you have a
Next.js
app that usesnext-auth
? Install this package and let me know how it goes! - Use-cases - are there any use cases or scenarios that I should add support for?
- Implementation - would you implement things differently in the codebase and why?
- Any other suggestions
Avoid
At this late stage in the project development, please avoid small syntactical suggestions or opinionated coding style suggestions. No nit-picking please :)
Non-technical review
If you're not a coder, you can still help out.
Documentation
There are various
README.md
documents that need sense checking. Any typos that I've overlooked also need catching!Here's a list of all the
README.md
files in the project.- /README.md
- /examples/README.md
- /examples/kv/README.md
- /examples/drizzle/README.md
- /examples/plain-js/README.md
- /examples/app-router/README.md
- /examples/ui-app-router/README.md
- /examples/ui-pages-router/README.md
Code comments
There are also many code comments dotted around the codebase. You can search for them on GitHub:
NOTE: you'll need a GitHub account to use the above link.
Rewards
All reviewers and testers will receive a shout out in the project's main
README.md
file. And of course, in the spirit of SN, you'll stack some sats!Sats will be rewarded at my discretion, ranging from 1,000 up to 200,000+ depending on your level of contribution. Quality, not necessarily quantity, will also be considered. For example, if you find a high-severity bug that takes one line of code to fix you'll be rewarded based on the level of impact.
Leaving a review
I'd suggest opening an issue on GitHub before opening a PR, so feel free. Otherwise you can simply leave comments on here on SN.
Pages router with generic UI screens:
App router with generic UI screens:
Pages router with custom UI screens:
App router with custom UI screens:
textContent
? Sourcetypeof
checks,any
, type-casting, etc. I know you said no nit-picking, but I guess I can't help myself.NextAuthLightningConfig.storage
, what is the difference betweenset
andupdate
? They both seem to accept the same arguments and do the same thing. Semantically they might be different in thatupdate
should be used to replace an existing value, but does it throw if there isn't already an entry fork1
? Is it supposed to? These two methods feel a bit redundant to me. Perhaps I am missing something, though.