-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a possibility to disable flows in dbAuth completely #5851
Conversation
✅ Deploy Preview for redwoodjs-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Thanks @Morishiri! @cannikin tagging you here, cause dbAuth! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cannikin and @Morishiri does any documentation need updating? Perhaps in the configuration section?
Awesome! Thanks for this @Morishiri ! As @dthyresson mentioned, the only thing missing is updated docs about these new options. |
I wanted to throw in a little curve ball here, I wonder why we're using the I believe the desired behavior is that either: Given this, wouldn't it make more sense to have it in one of these forms? // a little confusing, because why are options false?
const signUpHandlerOptions = false
// or maybe, where none of the other properties are supplied
const signUpHandlerOptions = {enabled: false} I think we should throw if enabled is false, and other options are supplied here (and also updated the types to reflect this) Just my 2p |
Hmm, isn't that what @Morishiri did in the PR? There's a new |
I think it’s close, but: |
Personally, I'm fine with letting you keep all of the options and then just flip a single boolean on/off if you want to enable/disable. Rather than deleting or commenting out all of the options AND setting it to It's like in my house if I need to work on the wiring in a room: I can flip off the circuit breaker to that room and everything is disabled. I don't need to also go around and unplug everything and unscrew every light bulb! ⚡️ Although for those people that like types, I agree that if you do want |
Hmmm yeah that makes sense - maybe we need to support a bit of both. Going by that analogy, we shouldn't need to plug in all your bulbs just to switch off the circuit breaker. So I guess the type should look something like:
That way you can just disable the handler with |
I like that! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Morishiri I noticed a few mistakes in the comments, so I had a pass at improving it slightly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Morishiri, LGTM, but will let @cannikin give the final ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @Morishiri thanks so much! This is a big change, 500 lines!
@cannikin The Is that fine? |
Hmm, will that cause any issue for people that have no webAuthn config option at all? I want to make sure it’s backwards compatible so that if you use your existing config (which will have no webAuthn key) everything just keeps working. |
I kept question mark in |
HMMM @jtoar Any idea with the E2E and smoke test failures? They both have this error message:
Pretty sure this PR has nothing to do with GraphQL tools. I'm trying a re-run now... |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 03c44ba. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 14 targets
Sent with 💌 from NxCloud. |
Nevermind @jtoar a re-run turned green! |
Wohoo 🎉 |
…ctmode-gen * 'main' of github.com:redwoodjs/redwood: fix(deps): update dependency eslint-plugin-jsx-a11y to v6.6.1 (redwoodjs#6017) chore(deps): update dependency @playwright/test to v1.24.0 (redwoodjs#6019) chore(deps): update dependency @okta/jwt-verifier to v2.6.0 (redwoodjs#6018) fix(storybook): add `args` to auto generate docs (redwoodjs#5979) fix: `yarn rw setup auth clerk` fails in canary (redwoodjs#5998) Provide a possibility to disable flows in dbAuth completely (redwoodjs#5851)
This has not landed in v2.2.0 right? |
Hi @toxsick - I don't believe so. you will be able to see all the features included in each release in the releases tab https://github.com/redwoodjs/redwood/releases |
Hey @dac09. thanks for the answer, yeah I looked through that, but I thought it is perhaps just not mentioned there. Anyway, I was asking because it was planned for this release in milestone v2.2.0, but i guess it didn't make it then :) Thanks for the awesome work and looking forward to use this change when it lands. |
@toxsick my bad, I forgot to update the milestone. This change depended on another change that we had to take out of v2.20, so it didn't make it this time. It'll be in the next release! |
Closes #5792