Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate A0APIClient & A0IdentityProviderAuthenticator singletons #115

Merged
merged 6 commits into from
May 15, 2015

Conversation

hzalaz
Copy link
Member

@hzalaz hzalaz commented May 15, 2015

Now there is only one interface to use Lock which is the class A0Lock. Instead of creating a VC or using A0APIClient directly, the user should need to create a A0Lock instance and ask it for either the client or VC.

let lock = A0Lock()
let controller = lock.newLockViewController()
let client = lock.apiClient()

All the operations of the A0IdentityProviderAuthenticator are now handled directly in A0Lock.

hzalaz added a commit that referenced this pull request May 15, 2015
Deprecate A0APIClient & A0IdentityProviderAuthenticator singletons
@hzalaz hzalaz merged commit 6198183 into master May 15, 2015
@hzalaz hzalaz deleted the feature-deprecate-singletons branch May 15, 2015 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant