Bearer => Token
This commit is contained in:
parent
18c68dc597
commit
b14ba5011c
|
|
@ -6,7 +6,7 @@ export const limit = 10
|
|||
|
||||
export const api = new Api({
|
||||
baseUrl: `${CONFIG.API_HOST}/api`,
|
||||
securityWorker: token => token ? { headers: { Authorization: `Bearer ${String(token)}` } } : {},
|
||||
securityWorker: token => token ? { headers: { Authorization: `Token ${String(token)}` } } : {},
|
||||
baseApiParams: {
|
||||
headers: {
|
||||
'content-type': ContentType.Json,
|
||||
|
|
|
|||
Loading…
Reference in New Issue