UserManaging
public protocol UserManaging
Implementers must implement this for managing onboarded users.
-
transientUser
Default implementationthe user with a transient flow
Default Implementation
Default implementation of transientUser
Declaration
Swift
static var transientUser: User? { get set }
-
It will fetch the stored User corresponding to provided onboardingID
Declaration
Swift
func get(forKey onboardingID: UUID) -> User?
-
It will store the User corresponding to provided onboardingID
Declaration
Swift
func put(onboardedUser: User?, forKey onboardingID: UUID)
-
It will remove the stored OnboardedUser corresponding to provided onboardingID
Declaration
Swift
func delete(forKey onboardingID: UUID)
-
getUsers(isActive:)
Default implementationIt will fetch all the stored OnboardedUser
Default Implementation
Default implementation of the protocol method. implementers still needs to implement the method to avoid infinite loop.
Declaration
Swift
func getUsers(isActive: Bool) -> [User]
-
It will fetch the current User
Declaration
Swift
func getCurrentUser() -> UUID?
-
It will store the current User
Declaration
Swift
func setCurrentUser(onboardingID: UUID)