hubtype / botonic

Build chatbots and conversational experiences using React
https://botonic.io
MIT License
519 stars 76 forks source link

botonic-cli: use axios.interceptor for update refreshToken #2894

Closed Iru89 closed 1 month ago

Iru89 commented 1 month ago

Description

Use axios interceptors to update token using refreshToken when response status is 401 Refactor:

Context

Review commit by commit to follow the refactor

github-actions[bot] commented 1 month ago

Test Results

30 tests  ±0   30 :white_check_mark: ±0   5m 17s :stopwatch: + 1m 0s  6 suites ±0    0 :zzz: ±0   1 files   ±0    0 :x: ±0 

Results for commit e0e6ce42. ± Comparison against base commit cba6d26e.

:recycle: This comment has been updated with latest results.