AccelerateNetworks / fusionpbx-webtexting

GNU Affero General Public License v3.0
0 stars 0 forks source link

Persist data between page loads to efficiently reuse API tokens #39

Open uncheckederror opened 5 months ago

uncheckederror commented 5 months ago

Right now saving the value of an API token to the session in PHP doesn't actually persist that token between page loads. We need to research a solution to this problem.

A call to the login API is made on every send message action executed in WebTexting. Ideally we would hang on to a single token until it expires and then use the refresh token to get a new token.

This issue is a follow up to the work done in #30.