33
This commit is contained in:
1 parent
9b0ea2fc59
commit
b46f1ac5b7
1 file changed
+1
-1
@@ -17,7 +17,7 @@ async function refreshToken() {
|
|||||||
const result = await axios.post('/api/accounts/token/refresh/', {refresh}, {
|
const result = await axios.post('/api/accounts/token/refresh/', {refresh}, {
|
||||||
baseURL
|
baseURL
|
||||||
})
|
})
|
||||||
|
|
||||||
if (result.config.data) localStorage.setItem('refresh', JSON.parse(result.config.data).refresh);
|
if (result.config.data) localStorage.setItem('refresh', JSON.parse(result.config.data).refresh);
|
||||||
localStorage.setItem('access', result.data.access)
|
localStorage.setItem('access', result.data.access)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user