Skip to content
Snippets Groups Projects
Commit 294ff22d authored by Hugo NOUTS's avatar Hugo NOUTS
Browse files

onDeleteAccount - grdf

parent 923dd7b8
No related branches found
No related tags found
No related merge requests found
Pipeline #22521 passed
......@@ -47,10 +47,11 @@ This token holds several meta datas, including the pce_id (id of user's meter) t
ProcessData -> StoreData
```
!!! info "to do"
:construction: Add request PCE's frequency :construction:
### On delete account
Grdf owns different type of meters, some are read twice a year (every six months therefore called 6M), others are 1M or 1D. Ecolyo could warn the user if its meter is not suited for the application use.
When deleting one's konnector account, src/onDeleteAccount.js is triggered. In order to facilitate a new oauth connection later on. It aims to remove user's consent between its grdf account and the Metropole de Lyon.
To do so, we use the secret credentials stored in account_type grdfgrandlyon.delete (see [cozy offical documentation](https://docs.cozy.io/en/cozy-stack/konnectors-workflow/#secrets-that-are-not-oauth) to know how we create a special account_type secret) to generate an access_token with enough permission to revoke any consents given to the Metropole.
## Launch on standalone
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment