chore: improve package metadata and dart developers experience #184
chore: improve package metadata and dart developers experience #184IldySilva wants to merge 11 commits into
Conversation
chore: expand gitignore for generated files
fix: redact auth tokens in string output
feat: add nhost_flutter package with auth DX and partial auth api
|
Hey @dbarrosop just wanted to make sure this doesn't look like random noise in the repo. I've been actively working on this SDK and studying the auth API reference, the open issues, and how other Flutter backends handle the same flows , trying to find where the DX can be meaningfully better. I converted to draft intentionally because I know there are breaking changes mixed in with the improvements, and I'd rather get early alignment than land a big PR that goes in the wrong direction. If you have a vision for where the SDK should go, constraints I should know about, or things you'd prioritize differently, I'd really appreciate hearing it. |
|
Thanks for this draft, this is a huge PR though with a lot of unrelated changes, I would suggest breaking it down into individual components so we can review more effectively. |
|
I'll break it down into smaller PRs and tackle them one piece at a time. |
repositorylinks so each pub.dev package points to its own source directorynhost_dartREADME sample to use the current public APIsNhostAuthClient.toString()Why
This improves package trust and developer experience on pub.dev. Users should land on the correct source directory, copy dependency snippets that install current versions, and avoid README examples that reference outdated APIs.
The token redaction change also prevents accidental leaking of access/refresh tokens through logs, debug prints, or crash reports , it just grab my attention when working with nhost
nhost_flutter (new package):
nhost_auth_dart — bug fix (#180):
authenticationState from staying stuck at inProgress indefinitely
nhost_sdk / nhost_auth_dart — new auth API coverage:
signInWithWebAuthn,verifyWebAuthnSignIn,signUpWithWebAuthn,verifyWebAuthnSignUp,addWebAuthnCredential,verifyAddWebAuthnCredential,elevateWithWebAuthn,verifyWebAuthnElevationnhost_dart — export fixes:
DeanonymizeSignInMethod to the public export list