abdul bellary
01/22/2026, 1:32 PMimport axios from "axios"
import SuperTokens from "supertokens-react-native"
export function initSuperTokens() {
SuperTokens.init({
apiDomain: "http://192.168.29.110:8080", // local backend
autoAddCredentials: true,
maxRetryAttemptsForSessionRefresh: 3,
tokenTransferMethod: "cookie",
})
}
SuperTokens.addAxiosInterceptors(axios)
import axios from "axios"
import Config from "react-native-config"
import { addAxiosInterceptors } from "supertokens-react-native"
export const apiClient = axios.create({
baseURL: "http://192.168.29.110:8080",
headers: {
"Content-Type": "application/json",
},
})
export const superTokenApiClient = addAxiosInterceptors(apiClient)
The error statement is as follows
11 |
> 12 | export const superTokenApiClient = addAxiosInterceptors(apiClient)
| ^
13 |
Call Stack
Whenever tried to use any of one funtion giving me error it is undefined.