mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-29 22:07:46 +03:00
Merge pull request #2042 from ecency/nt/reporting-token-intercept
NT - Notify Token Inject Failure
This commit is contained in:
commit
081e8db658
@ -5,6 +5,7 @@ import { get } from 'lodash';
|
||||
import { store } from '../redux/store/store';
|
||||
import { getDigitPinCode } from '../providers/hive/dhive';
|
||||
import { decryptKey } from '../utils/crypto';
|
||||
import bugsnagInstance from '../config/bugsnag';
|
||||
|
||||
const api = axios.create({
|
||||
baseURL: Config.ECENCY_BACKEND_API,
|
||||
@ -39,6 +40,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`))
|
||||
}
|
||||
|
||||
return request;
|
||||
|
Loading…
Reference in New Issue
Block a user