Hey Guys, I'm Abdul from Bangalore-India. I was ...
# general
a
Hey Guys, I'm Abdul from Bangalore-India. I was integrating supertoken's react native sdk in one of my project. after i, tried init for super token how can u workaround for it as when i was trying to call the functions i cant seem to make them work. other than init. can u guys assist me figure the process to make it work on react native app. with the super token sdk.  
Copy code
import 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)
Copy code
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
Copy code
11 |
> 12 | export const superTokenApiClient = addAxiosInterceptors(apiClient)
     |                                                        ^
  13 |
Call Stack
Whenever tried to use any of one funtion giving me error it is undefined.
7 Views