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

unlinkAccountWithUserId uses application client ID, but v1 /unlink API requires global_client_id #108

Closed
jygeer opened this issue May 8, 2015 · 2 comments

Comments

@jygeer
Copy link

jygeer commented May 8, 2015

We are attempting to use the unlinkAccountWithUserId function, but are getting failures. A manual (javascript) post to https://xxxx.auth0.com/unlink works, but only with clientID set to the users global_client_id (and not self.clientId as implemented in iOS Lock API). xf: https://auth0.com/docs/link-accounts

@hzalaz
Copy link
Member

hzalaz commented May 11, 2015

@jygeer a new version 1.11.3 was published in CocoaPods that solves part of the issue. You still need to create a new A0APIClient with your global client_id:

A0APIClient *client = [[A0APIClient alloc] initWithClientId:@"YOUR_GLOBAL_CLIENT_ID" andTenant:@"YOUR_TENANT"];

This initialiser is deprecated but will still work

And then call unlink method with this new client instance.

@jygeer
Copy link
Author

jygeer commented May 13, 2015

Verified!

@jygeer jygeer closed this as completed May 13, 2015
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

2 participants