cozy / cozy-client-js

Javascript library to write Cozy applications
https://docs.cozy.io/en/cozy-client-js/README/
MIT License
11 stars 12 forks source link

Save client id on local database #79

Open kosssi opened 7 years ago

kosssi commented 7 years ago

Actually we could save client information when we register an auth client. https://github.com/cozy/cozy-files-v3/pull/113

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

enguerran commented 7 years ago

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.