user log in finished
This commit is contained in:
@@ -21,6 +21,11 @@ export const AppContextProvider = ({ children, baseURL }: Props) => {
|
||||
|
||||
api.interceptors.request.use((config) => {
|
||||
// config.url += '?format=json'
|
||||
config.headers = {
|
||||
Authorization: `Token ${window.localStorage.getItem(
|
||||
'cash-stacks-token',
|
||||
)}`,
|
||||
}
|
||||
return config
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user