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

Save client id on local database #79

Open
kosssi opened this issue Feb 20, 2017 · 1 comment
Open

Save client id on local database #79

kosssi opened this issue Feb 20, 2017 · 1 comment

Comments

@kosssi
Copy link
Contributor

kosssi commented Feb 20, 2017

Actually we could save client information when we register an auth client. cozy/cozy-drive#113

It's better if cozy-client-js save it on local database to unregister the client easier.

@enguerran
Copy link
Contributor

As getClient() is an API to GET /auth/register/:clientID with a registrationAccessToken required, it seems not feasible to set up a getClient() without any parameter. Thus it seems to be the third-party application's responsibility to store these two pieces of information (clientID and registrationAccessToken) needed for the request after a registration in order to get further accessibility to getClient() and others https://github.com/cozy/cozy-client-js API.

@kosssi kosssi changed the title Save client on local database & return it with getClient() Save client id on local database Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants