src/module/services/auth-process.service.ts
Properties |
Methods |
|
constructor(afa: AngularFireAuth, config: NgxAuthFirebaseUIConfig, _snackBar: MatSnackBar, _fireStoreService: FirestoreSyncService, _matSnackBarConfig: MatSnackBarConfig)
|
||||||||||||||||||
Parameters :
|
Public deleteAccount |
deleteAccount()
|
Returns :
Promise<any>
|
getMessageOnAuthError | ||||||
getMessageOnAuthError(error: any)
|
||||||
Parameters :
Returns :
string
|
Public getPhotoPath | ||||||
getPhotoPath(image: string)
|
||||||
Parameters :
Returns :
string
|
Public getUserPhotoUrl |
getUserPhotoUrl()
|
Returns :
string
|
handleError | ||||||
handleError(error: any)
|
||||||
Parameters :
Returns :
void
|
Async handleSuccess | ||||||
handleSuccess(userCredential: UserCredential)
|
||||||
Parameters :
Returns :
any
|
listenToUserEvents |
listenToUserEvents()
|
Returns :
void
|
notifyError | ||||||
notifyError(error: any)
|
||||||
Parameters :
Returns :
void
|
Public parseUserInfo | ||||||
parseUserInfo(user: User)
|
||||||
Parameters :
Returns :
UserInfo
|
reloadUserInfo |
reloadUserInfo()
|
Returns :
any
|
Public resetPassword | ||||||||
resetPassword(email: string)
|
||||||||
Reset the password of the ngx-auth-firebaseui-user via email
Parameters :
Returns :
any
|
Async sendNewVerificationEmail |
sendNewVerificationEmail()
|
Returns :
{}
|
showErrorToast | ||||||
showErrorToast(error: any)
|
||||||
Parameters :
Returns :
void
|
showToast | ||||||
showToast(message: string)
|
||||||
Parameters :
Returns :
void
|
Public Async signInWith | ||||||||||||
signInWith(provider: AuthProvider, credentials?: ICredentials)
|
||||||||||||
General sign in mechanism to authenticate the users with a firebase project using a traditional way, via username and password or by using an authentication provider like google, facebook, twitter and github
Parameters :
Returns :
any
|
Public signInWithPhoneNumber |
signInWithPhoneNumber()
|
Returns :
void
|
Async signOut |
signOut()
|
Returns :
any
|
Public Async signUp | ||||||||||||
signUp(displayName: string, credentials: ICredentials)
|
||||||||||||
Sign up new users via email and password. After that the ngx-auth-firebaseui-user should verify and confirm an email sent via the firebase
Parameters :
Returns :
any
|
Public updateProfile | ||||||||||||
updateProfile(name: string, photoURL: string)
|
||||||||||||
Update the profile (name + photo url) of the authenticated ngx-auth-firebaseui-user in the firebase authentication feature (not in firestore)
Parameters :
Returns :
Promise<any>
|
Public afa |
Type : AngularFireAuth
|
Public config |
Type : NgxAuthFirebaseUIConfig
|
Decorators :
@Inject(undefined)
|
emailConfirmationSent |
Type : boolean
|
emailToConfirm |
Type : string
|
messageOnAuthError |
Type : messageOnAuthErrorType
|
messageOnAuthSuccess |
Type : string
|
onErrorEmitter |
Type : EventEmitter<any>
|
Default value : new EventEmitter<any>()
|
onSuccessEmitter |
Type : EventEmitter<any>
|
Default value : new EventEmitter<any>()
|
user |
Type : User
|
user$ |
Type : Observable<User>
|