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

New Login Mechanism #207

Closed
jleandroperez opened this issue Feb 5, 2014 · 1 comment
Closed

New Login Mechanism #207

jleandroperez opened this issue Feb 5, 2014 · 1 comment
Assignees
Milestone

Comments

@jleandroperez
Copy link
Contributor

We may have use-cases in which Simperium needs to be started with an authToken obtained by going through a flow that might not be in our control.

Right now, the only way to do this is by doing...:

self.simperium.authenticationEnabled = NO;
// Start Simperium...
self.simperium.user = [[SPUser alloc] initWithEmail:email token:simperiumToken];
[self.simperium performSelector:@selector(startNetworkManagers) withObject:nil];

Note that the 'startNetworkManagers' method is private, and the developer needs to inject, externally, an instance of SPUser. Let's update our API so no external hacks are needed:

self.simperium.authenticationEnabled = NO;
// Start Simperium...
[self.simperium authenticateWithEmail:email token:token];
@jleandroperez
Copy link
Contributor Author

Let's update the API so email is not required.

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

No branches or pull requests

1 participant