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
Factory.userService.signinWithGoogle() -> IVPublisher<UserModel>
Factory.userService.signinWithApple() -> IVPublisher<UserModel>
// Sign-up variants. The no-argument overloads default to "en".
// Supported language codes: "en", "de", "zh", "es", "fr", "it", "ru", "pt"
Factory.userService.signupWithGoogle(languageCode: String) -> IVPublisher<UserModel>
Factory.userService.signupWithApple(languageCode: String) -> IVPublisher<UserModel>
Logout
To log out the user, the following code can be used:
Factory.userService.logout() -> IVPublisher<Void>