add documents
This commit is contained in:
1 parent
d4ec833a31
commit
9f1179db39
57 files changed
+1659
-8
No files matched your search
@@ -49,11 +49,12 @@ export const fetchAuth = async ({
|
||||
|
||||
response.json().then((resJSON) => {
|
||||
localStorage.setItem('auth_token', resJSON.access_token)
|
||||
localStorage.setItem('id', resJSON.id)
|
||||
localStorage.setItem(
|
||||
'access_token_expired_at',
|
||||
resJSON.access_token_expired_at
|
||||
)
|
||||
dispatch()
|
||||
dispatch(resJSON)
|
||||
})
|
||||
} catch (error) {
|
||||
console.error('Error occured: ', error)
|
||||
|
||||
Reference in new issue
Block a user