Skip to content

Commit 7588497

Browse files
Merge pull request #772 from supertokens/add-mobile-debug-logs-docs
Add section for React Native debug logs
2 parents fe57ac7 + 6f45930 commit 7588497

File tree

7 files changed

+288
-36
lines changed

7 files changed

+288
-36
lines changed

v2/emailpassword/troubleshooting/how-to-troubleshoot.mdx

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,23 +183,65 @@ supertokens.init({
183183
</TabItem>
184184
</NpmOrScriptTabs>
185185

186+
The above will print out SuperTokens debug log on the browser console:
187+
188+
<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
189+
186190
</TabItem>
187191

188192
<TabItem value="mobile">
189193

194+
<FrontendMobileSubTabs>
195+
196+
<TabItem value="reactnative">
197+
198+
```tsx
199+
import SuperTokens from 'supertokens-react-native';
200+
201+
SuperTokens.init({
202+
apiDomain: "...",
203+
// highlight-next-line
204+
enableDebugLogs: true,
205+
});
206+
```
207+
208+
The above will print out SuperTokens debug logs on the terminal if you're using the React Native CLI or Expo:
209+
210+
<img src="/img/react-native-debug-logs.png" alt="React Native debug logs" />
211+
212+
</TabItem>
213+
214+
215+
<TabItem value="android">
216+
190217
:::caution
191-
Debug logs feature not yet available for mobile apps.
218+
Debug logs feature not yet available for Android
192219
:::
193220

194221
</TabItem>
195222

196-
</FrontendCustomUITabs>
223+
<TabItem value="ios">
197224

198-
</CustomUIContent>
225+
:::caution
226+
Debug logs feature not yet available for iOS
227+
:::
199228

200-
</PreBuiltOrCustomUISwitcher>
229+
</TabItem>
201230

231+
<TabItem value="flutter">
202232

203-
The above will print out supertokens debug log on the browser console:
233+
:::caution
234+
Debug logs feature not yet available for Flutter
235+
:::
236+
237+
</TabItem>
204238

205-
<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
239+
</FrontendMobileSubTabs>
240+
241+
</TabItem>
242+
243+
</FrontendCustomUITabs>
244+
245+
</CustomUIContent>
246+
247+
</PreBuiltOrCustomUISwitcher>

v2/passwordless/troubleshooting/how-to-troubleshoot.mdx

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,23 +183,65 @@ supertokens.init({
183183
</TabItem>
184184
</NpmOrScriptTabs>
185185

186+
The above will print out SuperTokens debug log on the browser console:
187+
188+
<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
189+
186190
</TabItem>
187191

188192
<TabItem value="mobile">
189193

194+
<FrontendMobileSubTabs>
195+
196+
<TabItem value="reactnative">
197+
198+
```tsx
199+
import SuperTokens from 'supertokens-react-native';
200+
201+
SuperTokens.init({
202+
apiDomain: "...",
203+
// highlight-next-line
204+
enableDebugLogs: true,
205+
});
206+
```
207+
208+
The above will print out SuperTokens debug logs on the terminal if you're using the React Native CLI or Expo:
209+
210+
<img src="/img/react-native-debug-logs.png" alt="React Native debug logs" />
211+
212+
</TabItem>
213+
214+
215+
<TabItem value="android">
216+
190217
:::caution
191-
Debug logs feature not yet available for mobile apps.
218+
Debug logs feature not yet available for Android
192219
:::
193220

194221
</TabItem>
195222

196-
</FrontendCustomUITabs>
223+
<TabItem value="ios">
197224

198-
</CustomUIContent>
225+
:::caution
226+
Debug logs feature not yet available for iOS
227+
:::
199228

200-
</PreBuiltOrCustomUISwitcher>
229+
</TabItem>
201230

231+
<TabItem value="flutter">
202232

203-
The above will print out supertokens debug log on the browser console:
233+
:::caution
234+
Debug logs feature not yet available for Flutter
235+
:::
204236

205-
<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
237+
</TabItem>
238+
239+
</FrontendMobileSubTabs>
240+
241+
</TabItem>
242+
243+
</FrontendCustomUITabs>
244+
245+
</CustomUIContent>
246+
247+
</PreBuiltOrCustomUISwitcher>

v2/session/troubleshooting/how-to-troubleshoot.mdx

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,23 +183,65 @@ supertokens.init({
183183
</TabItem>
184184
</NpmOrScriptTabs>
185185

186+
The above will print out SuperTokens debug log on the browser console:
187+
188+
<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
189+
186190
</TabItem>
187191

188192
<TabItem value="mobile">
189193

194+
<FrontendMobileSubTabs>
195+
196+
<TabItem value="reactnative">
197+
198+
```tsx
199+
import SuperTokens from 'supertokens-react-native';
200+
201+
SuperTokens.init({
202+
apiDomain: "...",
203+
// highlight-next-line
204+
enableDebugLogs: true,
205+
});
206+
```
207+
208+
The above will print out SuperTokens debug logs on the terminal if you're using the React Native CLI or Expo:
209+
210+
<img src="/img/react-native-debug-logs.png" alt="React Native debug logs" />
211+
212+
</TabItem>
213+
214+
215+
<TabItem value="android">
216+
190217
:::caution
191-
Debug logs feature not yet available for mobile apps.
218+
Debug logs feature not yet available for Android
192219
:::
193220

194221
</TabItem>
195222

196-
</FrontendCustomUITabs>
223+
<TabItem value="ios">
197224

198-
</CustomUIContent>
225+
:::caution
226+
Debug logs feature not yet available for iOS
227+
:::
199228

200-
</PreBuiltOrCustomUISwitcher>
229+
</TabItem>
201230

231+
<TabItem value="flutter">
202232

203-
The above will print out supertokens debug log on the browser console:
233+
:::caution
234+
Debug logs feature not yet available for Flutter
235+
:::
204236

205-
<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
237+
</TabItem>
238+
239+
</FrontendMobileSubTabs>
240+
241+
</TabItem>
242+
243+
</FrontendCustomUITabs>
244+
245+
</CustomUIContent>
246+
247+
</PreBuiltOrCustomUISwitcher>
279 KB
Loading

v2/thirdparty/troubleshooting/how-to-troubleshoot.mdx

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,23 +183,65 @@ supertokens.init({
183183
</TabItem>
184184
</NpmOrScriptTabs>
185185

186+
The above will print out SuperTokens debug log on the browser console:
187+
188+
<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
189+
186190
</TabItem>
187191

188192
<TabItem value="mobile">
189193

194+
<FrontendMobileSubTabs>
195+
196+
<TabItem value="reactnative">
197+
198+
```tsx
199+
import SuperTokens from 'supertokens-react-native';
200+
201+
SuperTokens.init({
202+
apiDomain: "...",
203+
// highlight-next-line
204+
enableDebugLogs: true,
205+
});
206+
```
207+
208+
The above will print out SuperTokens debug logs on the terminal if you're using the React Native CLI or Expo:
209+
210+
<img src="/img/react-native-debug-logs.png" alt="React Native debug logs" />
211+
212+
</TabItem>
213+
214+
215+
<TabItem value="android">
216+
190217
:::caution
191-
Debug logs feature not yet available for mobile apps.
218+
Debug logs feature not yet available for Android
192219
:::
193220

194221
</TabItem>
195222

196-
</FrontendCustomUITabs>
223+
<TabItem value="ios">
197224

198-
</CustomUIContent>
225+
:::caution
226+
Debug logs feature not yet available for iOS
227+
:::
199228

200-
</PreBuiltOrCustomUISwitcher>
229+
</TabItem>
201230

231+
<TabItem value="flutter">
202232

203-
The above will print out supertokens debug log on the browser console:
233+
:::caution
234+
Debug logs feature not yet available for Flutter
235+
:::
204236

205-
<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
237+
</TabItem>
238+
239+
</FrontendMobileSubTabs>
240+
241+
</TabItem>
242+
243+
</FrontendCustomUITabs>
244+
245+
</CustomUIContent>
246+
247+
</PreBuiltOrCustomUISwitcher>

v2/thirdpartyemailpassword/troubleshooting/how-to-troubleshoot.mdx

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,23 +183,65 @@ supertokens.init({
183183
</TabItem>
184184
</NpmOrScriptTabs>
185185

186+
The above will print out SuperTokens debug log on the browser console:
187+
188+
<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
189+
186190
</TabItem>
187191

188192
<TabItem value="mobile">
189193

194+
<FrontendMobileSubTabs>
195+
196+
<TabItem value="reactnative">
197+
198+
```tsx
199+
import SuperTokens from 'supertokens-react-native';
200+
201+
SuperTokens.init({
202+
apiDomain: "...",
203+
// highlight-next-line
204+
enableDebugLogs: true,
205+
});
206+
```
207+
208+
The above will print out SuperTokens debug logs on the terminal if you're using the React Native CLI or Expo:
209+
210+
<img src="/img/react-native-debug-logs.png" alt="React Native debug logs" />
211+
212+
</TabItem>
213+
214+
215+
<TabItem value="android">
216+
190217
:::caution
191-
Debug logs feature not yet available for mobile apps.
218+
Debug logs feature not yet available for Android
192219
:::
193220

194221
</TabItem>
195222

196-
</FrontendCustomUITabs>
223+
<TabItem value="ios">
197224

198-
</CustomUIContent>
225+
:::caution
226+
Debug logs feature not yet available for iOS
227+
:::
199228

200-
</PreBuiltOrCustomUISwitcher>
229+
</TabItem>
201230

231+
<TabItem value="flutter">
202232

203-
The above will print out supertokens debug log on the browser console:
233+
:::caution
234+
Debug logs feature not yet available for Flutter
235+
:::
204236

205-
<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
237+
</TabItem>
238+
239+
</FrontendMobileSubTabs>
240+
241+
</TabItem>
242+
243+
</FrontendCustomUITabs>
244+
245+
</CustomUIContent>
246+
247+
</PreBuiltOrCustomUISwitcher>

0 commit comments

Comments
 (0)