Authentication and Authorization
Signing in with InstaVision’s Authentication System
To Sign in with the user account, the following information is typically required:
email(required): The email address of the userpassword(required): The password of the user
Factory.userService.signin(email: String, password: String) -> IVPublisher<UserModel>
Signing in with Third Party Authentication System
//Currently supported languages are "en", "de", "zh", "es", "fr", "it", "ru", "pt"
Factory.userService.signupWithGoogle(language: String) -> IVPublisher<UserModel>
Factory.userService.signupWithApple(language: String) -> IVPublisher<UserModel>
Logout
To log out the user, the following code can be used:
Factory.userService.logout() -> IVPublisher<Void>