Cloverbyte Auth
This library was generated with Angular CLI version 13.2.0.
Dependencies
- @angular/fire version 7.2.1+
- @ngxs/store 3.7.3+
- firebase 9.4.0+
- rxfire 6.0.0+
Install
npm install @cloverbyte/auth
Setup
import { CloverbyteAuthModule } from '@cloverbyte/auth';
@NgModule({
imports: [
...
...
CloverbyteAuthModule.forRoot({
apiUrl: 'SAMPLE_URL';
loginNavigationPath: '<path to destination after login>';
logoutNavigationPath: '<path to destination after logout>';
defaultPhotoUrl: '<path to default profile photo>';
}),
NgxsModule.forRoot([
...
AuthState,
UserState,
...
]),
...
...
],
bootstrap: [App],
declarations: [App],
})
class AppModule {}
API
User
Method | Description |
---|
findById | |
updateUserInfo | |
updateUserPhoto | |
create | |
delete | |
Auth
Method | Description |
---|
setAuth | |
login | |
logout | |
getToken | |
signUp | |
sendPasswordResetEmail | |
resetPassword | |
sendVerificationEmail | |