fix(typeform): add HTTP 403 to refresh token
This commit is contained in:
@@ -44,7 +44,8 @@ export default function createHttpClient({
|
|||||||
const { status } = error.response;
|
const { status } = error.response;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
status === 401 &&
|
// TODO: provide a `shouldRefreshToken` function in the app
|
||||||
|
(status === 401 || status === 403) &&
|
||||||
$.app.auth.refreshToken &&
|
$.app.auth.refreshToken &&
|
||||||
!$.app.auth.isRefreshTokenRequested
|
!$.app.auth.isRefreshTokenRequested
|
||||||
) {
|
) {
|
||||||
|
Reference in New Issue
Block a user