- Added Auto Sign-in & SDK Auto Validation feature via custom user defined values. Use the launchWithAutoAuthentication method of the GluedIn shared singalton class.
// uservalidation: user validation are the data model which need to set with real time user auth data.
// userinfo: userinfo data model set can be set with user information data.
// From this method we will receive a call UIController call back whcih can be further use as per user requirement.
let autoAuth = AutoAuthenticate(uservalidation: uservalidation, userinfo: userInfo)
GluedIn.shared.launchWithAutoAuthentication(
isLoggedIn: true,
auth: autoAuth,
delegate: self
) { [weak self] controller in
guard let weakSelf = self else { return }
weakSelf.navigationController?.pushViewController(controller ?? UIViewController(), animated: true)
} failure: { error in
print(error)
}
let userInfo = Userinfo(
userId: "gluedIn_user_id",
fullName: "User full name",
userName: "user name",
email: "name@mailinator.com",
profileImageUrl: "https://assets.gluedin.io/Profile.png",
creator: true)
let uservalidation = Uservalidation(
closedCommunity: false,
privacyPolicy: "",
aboutUs: "",
termsAndConditions: "",
userAccessToken: "user_access_token",
guestRefreshToken: "guest_refresh_token",
userRefreshToken: "user_refresh_token",
guestAccessToken: "guest_access_token",
clientId: "client_id"
)
- Apply pagination on my and other user profile
- Bug fixes