ConfigWiseSDK Documentation Beta

Class Auth​Service

public class AuthService: DaoAwareService
AuthService AuthService DaoAwareService DaoAwareService AuthService->DaoAwareService

Conforms To

DaoAwareService

Properties

shared​Instance

let sharedInstance

Methods

sign​In(app​Name:​app​Version:​email:​password:​block:​)

public func signIn(appName: String? = nil, appVersion: String? = nil, email: String? = nil, password: String? = nil, block: @escaping (UserEntity?, Error?) -> Void)

sign​Out(notify:​)

public func signOut(notify: Bool = true)

current​User(block:​)

public func currentUser(block: @escaping (UserEntity?) -> Void)

current​Company(block:​)

public func currentCompany(block: @escaping (CompanyEntity?, Error?) -> Void)

is​Current​User​Company​Manager(block:​)

public func isCurrentUserCompanyManager(block: @escaping (Bool) -> Void)

is​Current​User​Company​Employee(block:​)

public func isCurrentUserCompanyEmployee(block: @escaping (Bool) -> Void)

is​Current​User​Company​Auth​Token(block:​)

public func isCurrentUserCompanyAuthToken(block: @escaping (Bool) -> Void)

sign​UpAsDemo​Company​Employee(email:​password:​full​Name:​block:​)

public func signUpAsDemoCompanyEmployee(email: String, password: String, fullName: String, block: @escaping (String?, Error?) -> Void)

reset​Password(email:​block:​)

public func resetPassword(email: String, block: @escaping (Error?) -> Void)