- Notifications
You must be signed in to change notification settings - Fork 2.2k
AngularFireAuth API's #555
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
Conversation
Added AngulaFireAuth API's as per issue #93. Please review and let me know, if any changes are needed.
| @mukesh51 fixing typo (copied from another CL) and adding this change to make this consistent with the auth guide. |
docs/api-reference.md Outdated
| .... | ||
| ``` | ||
| | ||
| This is similar to how firebase provides authentication |
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.
Please revise these to just say: See [link] for more and place these up in the description instead of below the usage example.
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.
@katowulf Updated as advised.
docs/api-reference.md Outdated
| The credentials object is an object containing email and password of the user to be created. Similar to [createUserWithEmailAndPassword](https://firebase.google.com/docs/reference/js/firebase.auth.Auth#createUserWithEmailAndPassword) | ||
| ```ts | ||
| createNewUser(): Promise<FirebaseAuthState> { |
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.
I think this should be: createNewUser( properties:Object ): Promise<FirebaseAuthState> {?
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.
@katowulf Updated as advised. yes it's a
createNewUser( properties:Object ): Promise
docs/api-reference.md Outdated
| } | ||
| ``` | ||
| `logout(): void`: Deletes the authentication token issued by Firebase and signs user out. See [Auth.signOut()](https://firebase.google.com/docs/reference/js/firebase.auth.Auth#signOut) in the Firebase API reference. |
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.
Probably worth noting that logout() is an asynchronous operation. There is an open bug against the Firebase SDK to make this return a promise.
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.
@katowulf Thanks for update. I was unaware that this is an open bug against firebase. I pasted the contents as per your suggestion. Hope that's ok.
docs/api-reference.md Outdated
| ``` | ||
| `getAuth(): FirebaseAuthState` : Returns the client's current Authentication State. |
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.
Where is FirebaseAuthState documented? Can we link to it?
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.
FirebaseAuthState is an interface in the definition file auth_backend.d.ts. I added the method signature in documentation, which might be helpful, incase someone is digging for more information.
I think it is similar to https://firebase.google.com/docs/reference/js/firebase.auth.AuthCredential , but I am not sure, hence didn't link it. Please verify and let me know as well. Thanks.,
| Hi @mukesh51! Great work! I added a few comments. Please address. |
Updated API's based on the comments received.
| Hi @katowulf . Did you get a chance to review this. Anything missing ?? |
| Great work! Sorry it took a while to get these reviewed. |
Added AngulaFireAuth API's as per issue #93. Please review and let me know, if any changes are needed.