saleor-app-sdk-REDIS_APL/.changeset/slow-oranges-serve.md
Lukasz Ostrowski f809368e4f
Add tokenRefresh event (#244)
* Add tokenRefresh event

* Create slow-oranges-serve.md

* update docs
2023-05-22 19:26:03 +02:00

12 lines
409 B
Markdown

---
"@saleor/app-sdk": patch
---
Added `tokenRefresh` event to AppBridge.
It's meant to be triggered by dashboard, when token is refreshed.
Apps that use new AppBridge will receive fresh token.
This fixes [this issue](https://github.com/saleor/saleor-app-sdk/issues/222)
For Saleor Cloud where token lives for 24h it was rare, but Saleor can be set to have any token duration, causing app to fail fast.