jetbridge / axios-jwt

Store, transmit, refresh JWT authentication tokens for axios
https://www.npmjs.com/package/axios-jwt/
117 stars 30 forks source link

Uncaught TypeError: (0 , ms_1.default) is not a function #57

Open slushpuppy opened 1 year ago

slushpuppy commented 1 year ago

Appears I am missing the "ms" dependency, installing it doesn't resolve the issue however

Uncaught TypeError: (0 , ms_1.default) is not a function at authTokenInterceptor (authTokenInterceptor. ts:178:1) at app lyAuthTokenInterceptor (applyAuthTokenInterceptor.ts:16:1) at ./src/api/auth.ts (auth.ts:43:1

tekyu commented 1 year ago

Same for me, I saw some fixes here https://github.com/vercel/ms/issues/186#issuecomment-1259526771 but nothing works.

Switching to 3.0.0-canary.1 does not work as well

Edit: Right, seems like version 3.0.0 from npm works so I believe the problem is in this PR https://github.com/jetbridge/axios-jwt/commit/14d6abcc726718ec24a3ed1119acdff7b86fe125

lien-dkseo commented 1 year ago

+1

renderbox commented 1 year ago

+1 as well.

Canoir commented 1 year ago

+1

DevWebcorp commented 1 year ago

+1 npm install --save axios-jwt@3.0.0 works for now.

danilmakarow commented 9 months ago

+1