froala / angular-froala-wysiwyg

Angular 4, 5, 6, 7, 8 and 9 plugin for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
735 stars 202 forks source link

Authentication token not updating with autosave feature #467

Open hassanasad opened 3 years ago

hassanasad commented 3 years ago

I have autosave feature set to true which works just fine. However when the JWT token expires, i need to update the token in the editor configurations so that autosave feature can keep on working.

The token expires after 15 minutes and a refresh token method fetches a new token which is working fine but when i update the editorConfigurations to use the new token - it still keeps using the old one (unless i destroy and reinitiate the editor). Any pointers how to update the requestHeaders object?