Skip to content

Commit 951d760

Browse files
Merge pull request #853 from supertokens/feat/add-debug-logs-doc-for-flutter
feat: add debug logs doc for flutter
2 parents 243aa17 + 8fcd247 commit 951d760

File tree

7 files changed

+66
-18
lines changed

7 files changed

+66
-18
lines changed

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,17 @@ Debug logs feature not yet available for iOS
269269

270270
<TabItem value="flutter">
271271

272-
:::caution
273-
Debug logs feature not yet available for Flutter
274-
:::
272+
```dart
273+
import 'package:supertokens_flutter/supertokens.dart';
274+
275+
void main() {
276+
SuperTokens.init(apiDomain: apiDomain, enableDebugLogs: true);
277+
}
278+
```
279+
280+
The above will print out SuperTokens debug logs on the terminal:
281+
282+
<img src="/img/flutter-debug-logs.png" alt="Flutter debug logs" />
275283

276284
</TabItem>
277285

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,17 @@ Debug logs feature not yet available for iOS
269269

270270
<TabItem value="flutter">
271271

272-
:::caution
273-
Debug logs feature not yet available for Flutter
274-
:::
272+
```dart
273+
import 'package:supertokens_flutter/supertokens.dart';
274+
275+
void main() {
276+
SuperTokens.init(apiDomain: apiDomain, enableDebugLogs: true);
277+
}
278+
```
279+
280+
The above will print out SuperTokens debug logs on the terminal:
281+
282+
<img src="/img/flutter-debug-logs.png" alt="Flutter debug logs" />
275283

276284
</TabItem>
277285

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,17 @@ Debug logs feature not yet available for iOS
269269

270270
<TabItem value="flutter">
271271

272-
:::caution
273-
Debug logs feature not yet available for Flutter
274-
:::
272+
```dart
273+
import 'package:supertokens_flutter/supertokens.dart';
274+
275+
void main() {
276+
SuperTokens.init(apiDomain: apiDomain, enableDebugLogs: true);
277+
}
278+
```
279+
280+
The above will print out SuperTokens debug logs on the terminal:
281+
282+
<img src="/img/flutter-debug-logs.png" alt="Flutter debug logs" />
275283

276284
</TabItem>
277285

v2/static/img/flutter-debug-logs.png

264 KB
Loading

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,17 @@ Debug logs feature not yet available for iOS
269269

270270
<TabItem value="flutter">
271271

272-
:::caution
273-
Debug logs feature not yet available for Flutter
274-
:::
272+
```dart
273+
import 'package:supertokens_flutter/supertokens.dart';
274+
275+
void main() {
276+
SuperTokens.init(apiDomain: apiDomain, enableDebugLogs: true);
277+
}
278+
```
279+
280+
The above will print out SuperTokens debug logs on the terminal:
281+
282+
<img src="/img/flutter-debug-logs.png" alt="Flutter debug logs" />
275283

276284
</TabItem>
277285

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,17 @@ Debug logs feature not yet available for iOS
269269

270270
<TabItem value="flutter">
271271

272-
:::caution
273-
Debug logs feature not yet available for Flutter
274-
:::
272+
```dart
273+
import 'package:supertokens_flutter/supertokens.dart';
274+
275+
void main() {
276+
SuperTokens.init(apiDomain: apiDomain, enableDebugLogs: true);
277+
}
278+
```
279+
280+
The above will print out SuperTokens debug logs on the terminal:
281+
282+
<img src="/img/flutter-debug-logs.png" alt="Flutter debug logs" />
275283

276284
</TabItem>
277285

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,17 @@ Debug logs feature not yet available for iOS
269269

270270
<TabItem value="flutter">
271271

272-
:::caution
273-
Debug logs feature not yet available for Flutter
274-
:::
272+
```dart
273+
import 'package:supertokens_flutter/supertokens.dart';
274+
275+
void main() {
276+
SuperTokens.init(apiDomain: apiDomain, enableDebugLogs: true);
277+
}
278+
```
279+
280+
The above will print out SuperTokens debug logs on the terminal:
281+
282+
<img src="/img/flutter-debug-logs.png" alt="Flutter debug logs" />
275283

276284
</TabItem>
277285

0 commit comments

Comments
 (0)