feat(auth-firebase): Firebase auth flow library isolating @angular/fire (0.0.16) - #10
Merged
Conversation
✅ Deploy Preview for rdlabo-ionic-angular-library ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Add the `@rdlabo/ionic-angular-kit/auth-firebase` secondary entry point so
`@angular/fire` is touched in exactly one place — the DI provider — letting apps
import `KIT_FIREBASE_AUTH` and call kit functions instead of the SDK directly
(making the eventual @angular/fire -> firebase/auth swap provider-local).
The kit performs no UI. Flow functions (kitSignIn/kitSignUp/kitSignOut/
kitSendPasswordReset/kitSendEmailVerification/kitUnlinkProvider) take uniform
{ before, success, error, finally } hooks and resolve null/false on failure
instead of throwing, handing the raw error to the app to present. Mechanics-only
helpers kitReauthWithRetry (app injects prompt/withLoading/mutate) and
kitResolveAuthStatus cover re-auth and the 3-state status. KIT_DEFAULT_AUTH_TEXT
is an importable canonical error dictionary the app renders itself.
Social login (Facebook/Apple) lives in the nested entry point
`.../auth-firebase/social` to isolate the Capacitor plugin peers.
Version 0.0.16.
rdlabo
force-pushed
the
feat/auth-firebase-reauth
branch
from
July 3, 2026 07:02
11886f7 to
71b23fa
Compare
Contributor
Author
|
/devin レビューして必要に応じて修正して |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New secondary entry point
@rdlabo/ionic-angular-kit/auth-firebasethat isolates@angular/fireinto a single DI provider, so apps importKIT_FIREBASE_AUTHand call kit functions instead of the SDK directly. This makes the eventual@angular/fire→ modularfirebase/authswap provider-local.Design
kitSignIn/kitSignUp/kitSignOut/kitSendPasswordReset/kitSendEmailVerification/kitUnlinkProvidertake{ before, success, error, finally }and resolvenull(value) /false(boolean) on failure, handing the raw error to theerrorhook for the app to present from its own dictionary.kitReauthWithRetryowns just the re-auth + wrong-password-retry loop (app injectsprompt/withLoading/mutate);kitResolveAuthStatusmaps a user to'user' | 'confirm' | 'required'. PluskitAuthState/kitGetIdToken.KIT_DEFAULT_AUTH_TEXTis an importable canonical error dictionary — the kit does not present it..../auth-firebase/social, nested entry to isolate the Capacitor plugin peers):kitFacebookLogin/kitAppleLogin/kitFacebookLogout, same hook shape (successreceives the identity payload for a backend call).Isolation gate
Apps import
KIT_FIREBASE_AUTH+ these functions;@angular/fireis referenced only insidekit-firebase-provider.ts. Heavy peers (@angular/fire,firebase, Capacitor plugins) are optional peer deps kept off the primary entry.Version 0.0.16.