Skip to content

Commit

Permalink
Merge pull request #772 from supertokens/add-mobile-debug-logs-docs
Browse files Browse the repository at this point in the history
Add section for React Native debug logs
  • Loading branch information
rishabhpoddar authored Jan 11, 2024
2 parents fe57ac7 + 6f45930 commit 7588497
Show file tree
Hide file tree
Showing 7 changed files with 288 additions and 36 deletions.
54 changes: 48 additions & 6 deletions v2/emailpassword/troubleshooting/how-to-troubleshoot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -183,23 +183,65 @@ supertokens.init({
</TabItem>
</NpmOrScriptTabs>

The above will print out SuperTokens debug log on the browser console:

<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />

</TabItem>

<TabItem value="mobile">

<FrontendMobileSubTabs>

<TabItem value="reactnative">

```tsx
import SuperTokens from 'supertokens-react-native';

SuperTokens.init({
apiDomain: "...",
// highlight-next-line
enableDebugLogs: true,
});
```

The above will print out SuperTokens debug logs on the terminal if you're using the React Native CLI or Expo:

<img src="/img/react-native-debug-logs.png" alt="React Native debug logs" />

</TabItem>


<TabItem value="android">

:::caution
Debug logs feature not yet available for mobile apps.
Debug logs feature not yet available for Android
:::

</TabItem>

</FrontendCustomUITabs>
<TabItem value="ios">

</CustomUIContent>
:::caution
Debug logs feature not yet available for iOS
:::

</PreBuiltOrCustomUISwitcher>
</TabItem>

<TabItem value="flutter">

The above will print out supertokens debug log on the browser console:
:::caution
Debug logs feature not yet available for Flutter
:::

</TabItem>

<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
</FrontendMobileSubTabs>

</TabItem>

</FrontendCustomUITabs>

</CustomUIContent>

</PreBuiltOrCustomUISwitcher>
54 changes: 48 additions & 6 deletions v2/passwordless/troubleshooting/how-to-troubleshoot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -183,23 +183,65 @@ supertokens.init({
</TabItem>
</NpmOrScriptTabs>

The above will print out SuperTokens debug log on the browser console:

<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />

</TabItem>

<TabItem value="mobile">

<FrontendMobileSubTabs>

<TabItem value="reactnative">

```tsx
import SuperTokens from 'supertokens-react-native';

SuperTokens.init({
apiDomain: "...",
// highlight-next-line
enableDebugLogs: true,
});
```

The above will print out SuperTokens debug logs on the terminal if you're using the React Native CLI or Expo:

<img src="/img/react-native-debug-logs.png" alt="React Native debug logs" />

</TabItem>


<TabItem value="android">

:::caution
Debug logs feature not yet available for mobile apps.
Debug logs feature not yet available for Android
:::

</TabItem>

</FrontendCustomUITabs>
<TabItem value="ios">

</CustomUIContent>
:::caution
Debug logs feature not yet available for iOS
:::

</PreBuiltOrCustomUISwitcher>
</TabItem>

<TabItem value="flutter">

The above will print out supertokens debug log on the browser console:
:::caution
Debug logs feature not yet available for Flutter
:::

<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
</TabItem>

</FrontendMobileSubTabs>

</TabItem>

</FrontendCustomUITabs>

</CustomUIContent>

</PreBuiltOrCustomUISwitcher>
54 changes: 48 additions & 6 deletions v2/session/troubleshooting/how-to-troubleshoot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -183,23 +183,65 @@ supertokens.init({
</TabItem>
</NpmOrScriptTabs>

The above will print out SuperTokens debug log on the browser console:

<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />

</TabItem>

<TabItem value="mobile">

<FrontendMobileSubTabs>

<TabItem value="reactnative">

```tsx
import SuperTokens from 'supertokens-react-native';

SuperTokens.init({
apiDomain: "...",
// highlight-next-line
enableDebugLogs: true,
});
```

The above will print out SuperTokens debug logs on the terminal if you're using the React Native CLI or Expo:

<img src="/img/react-native-debug-logs.png" alt="React Native debug logs" />

</TabItem>


<TabItem value="android">

:::caution
Debug logs feature not yet available for mobile apps.
Debug logs feature not yet available for Android
:::

</TabItem>

</FrontendCustomUITabs>
<TabItem value="ios">

</CustomUIContent>
:::caution
Debug logs feature not yet available for iOS
:::

</PreBuiltOrCustomUISwitcher>
</TabItem>

<TabItem value="flutter">

The above will print out supertokens debug log on the browser console:
:::caution
Debug logs feature not yet available for Flutter
:::

<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
</TabItem>

</FrontendMobileSubTabs>

</TabItem>

</FrontendCustomUITabs>

</CustomUIContent>

</PreBuiltOrCustomUISwitcher>
Binary file added v2/static/img/react-native-debug-logs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 48 additions & 6 deletions v2/thirdparty/troubleshooting/how-to-troubleshoot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -183,23 +183,65 @@ supertokens.init({
</TabItem>
</NpmOrScriptTabs>

The above will print out SuperTokens debug log on the browser console:

<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />

</TabItem>

<TabItem value="mobile">

<FrontendMobileSubTabs>

<TabItem value="reactnative">

```tsx
import SuperTokens from 'supertokens-react-native';

SuperTokens.init({
apiDomain: "...",
// highlight-next-line
enableDebugLogs: true,
});
```

The above will print out SuperTokens debug logs on the terminal if you're using the React Native CLI or Expo:

<img src="/img/react-native-debug-logs.png" alt="React Native debug logs" />

</TabItem>


<TabItem value="android">

:::caution
Debug logs feature not yet available for mobile apps.
Debug logs feature not yet available for Android
:::

</TabItem>

</FrontendCustomUITabs>
<TabItem value="ios">

</CustomUIContent>
:::caution
Debug logs feature not yet available for iOS
:::

</PreBuiltOrCustomUISwitcher>
</TabItem>

<TabItem value="flutter">

The above will print out supertokens debug log on the browser console:
:::caution
Debug logs feature not yet available for Flutter
:::

<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
</TabItem>

</FrontendMobileSubTabs>

</TabItem>

</FrontendCustomUITabs>

</CustomUIContent>

</PreBuiltOrCustomUISwitcher>
54 changes: 48 additions & 6 deletions v2/thirdpartyemailpassword/troubleshooting/how-to-troubleshoot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -183,23 +183,65 @@ supertokens.init({
</TabItem>
</NpmOrScriptTabs>

The above will print out SuperTokens debug log on the browser console:

<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />

</TabItem>

<TabItem value="mobile">

<FrontendMobileSubTabs>

<TabItem value="reactnative">

```tsx
import SuperTokens from 'supertokens-react-native';

SuperTokens.init({
apiDomain: "...",
// highlight-next-line
enableDebugLogs: true,
});
```

The above will print out SuperTokens debug logs on the terminal if you're using the React Native CLI or Expo:

<img src="/img/react-native-debug-logs.png" alt="React Native debug logs" />

</TabItem>


<TabItem value="android">

:::caution
Debug logs feature not yet available for mobile apps.
Debug logs feature not yet available for Android
:::

</TabItem>

</FrontendCustomUITabs>
<TabItem value="ios">

</CustomUIContent>
:::caution
Debug logs feature not yet available for iOS
:::

</PreBuiltOrCustomUISwitcher>
</TabItem>

<TabItem value="flutter">

The above will print out supertokens debug log on the browser console:
:::caution
Debug logs feature not yet available for Flutter
:::

<img src="/img/front-debug-logs.png" alt="Frontend browser debug logs" />
</TabItem>

</FrontendMobileSubTabs>

</TabItem>

</FrontendCustomUITabs>

</CustomUIContent>

</PreBuiltOrCustomUISwitcher>
Loading

0 comments on commit 7588497

Please sign in to comment.