Skip to content

Commit

Permalink
Merge pull request #853 from supertokens/feat/add-debug-logs-doc-for-…
Browse files Browse the repository at this point in the history
…flutter

feat: add debug logs doc for flutter
  • Loading branch information
rishabhpoddar authored Sep 27, 2024
2 parents 243aa17 + 8fcd247 commit 951d760
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 18 deletions.
14 changes: 11 additions & 3 deletions v2/emailpassword/troubleshooting/how-to-troubleshoot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,17 @@ Debug logs feature not yet available for iOS

<TabItem value="flutter">

:::caution
Debug logs feature not yet available for Flutter
:::
```dart
import 'package:supertokens_flutter/supertokens.dart';
void main() {
SuperTokens.init(apiDomain: apiDomain, enableDebugLogs: true);
}
```

The above will print out SuperTokens debug logs on the terminal:

<img src="/img/flutter-debug-logs.png" alt="Flutter debug logs" />

</TabItem>

Expand Down
14 changes: 11 additions & 3 deletions v2/passwordless/troubleshooting/how-to-troubleshoot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,17 @@ Debug logs feature not yet available for iOS

<TabItem value="flutter">

:::caution
Debug logs feature not yet available for Flutter
:::
```dart
import 'package:supertokens_flutter/supertokens.dart';
void main() {
SuperTokens.init(apiDomain: apiDomain, enableDebugLogs: true);
}
```

The above will print out SuperTokens debug logs on the terminal:

<img src="/img/flutter-debug-logs.png" alt="Flutter debug logs" />

</TabItem>

Expand Down
14 changes: 11 additions & 3 deletions v2/session/troubleshooting/how-to-troubleshoot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,17 @@ Debug logs feature not yet available for iOS

<TabItem value="flutter">

:::caution
Debug logs feature not yet available for Flutter
:::
```dart
import 'package:supertokens_flutter/supertokens.dart';
void main() {
SuperTokens.init(apiDomain: apiDomain, enableDebugLogs: true);
}
```

The above will print out SuperTokens debug logs on the terminal:

<img src="/img/flutter-debug-logs.png" alt="Flutter debug logs" />

</TabItem>

Expand Down
Binary file added v2/static/img/flutter-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.
14 changes: 11 additions & 3 deletions v2/thirdparty/troubleshooting/how-to-troubleshoot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,17 @@ Debug logs feature not yet available for iOS

<TabItem value="flutter">

:::caution
Debug logs feature not yet available for Flutter
:::
```dart
import 'package:supertokens_flutter/supertokens.dart';
void main() {
SuperTokens.init(apiDomain: apiDomain, enableDebugLogs: true);
}
```

The above will print out SuperTokens debug logs on the terminal:

<img src="/img/flutter-debug-logs.png" alt="Flutter debug logs" />

</TabItem>

Expand Down
14 changes: 11 additions & 3 deletions v2/thirdpartyemailpassword/troubleshooting/how-to-troubleshoot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,17 @@ Debug logs feature not yet available for iOS

<TabItem value="flutter">

:::caution
Debug logs feature not yet available for Flutter
:::
```dart
import 'package:supertokens_flutter/supertokens.dart';
void main() {
SuperTokens.init(apiDomain: apiDomain, enableDebugLogs: true);
}
```

The above will print out SuperTokens debug logs on the terminal:

<img src="/img/flutter-debug-logs.png" alt="Flutter debug logs" />

</TabItem>

Expand Down
14 changes: 11 additions & 3 deletions v2/thirdpartypasswordless/troubleshooting/how-to-troubleshoot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,17 @@ Debug logs feature not yet available for iOS

<TabItem value="flutter">

:::caution
Debug logs feature not yet available for Flutter
:::
```dart
import 'package:supertokens_flutter/supertokens.dart';
void main() {
SuperTokens.init(apiDomain: apiDomain, enableDebugLogs: true);
}
```

The above will print out SuperTokens debug logs on the terminal:

<img src="/img/flutter-debug-logs.png" alt="Flutter debug logs" />

</TabItem>

Expand Down

0 comments on commit 951d760

Please sign in to comment.