mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 12:21:31 +03:00
updated bugsnag log message for accessToken injection failure
This commit is contained in:
parent
50e7b4a8cc
commit
66a9acbcce
@ -45,8 +45,9 @@ api.interceptors.request.use((request) => {
|
||||
request.data.code = accessToken;
|
||||
console.log('Added access token:', accessToken);
|
||||
} else {
|
||||
console.warn("Failed to inject accessToken")
|
||||
bugsnagInstance.notify(new Error(`Failed to inject accessToken in api call`))
|
||||
const isLoggedIn = state.application.isLoggedIn;
|
||||
console.warn("Failed to inject accessToken", `isLoggedIn:${isLoggedIn}`)
|
||||
bugsnagInstance.notify(new Error(`Failed to inject accessToken in ${request.url} call. isLoggedIn:${isLoggedIn}`))
|
||||
}
|
||||
|
||||
return request;
|
||||
|
Loading…
Reference in New Issue
Block a user