Skip to content

Commit c43d979

Browse files
Merge pull request #311 from brettchaldecott/fix/run_on_macos_and_web
update: added the BuildContext information to the documentation.
2 parents 4ea7c1e + 7bc3280 commit c43d979

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/docs/developer-tools/sdks/native/flutter-sdk.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ The Kinde client provides methods for a simple login / register flow which authe
178178

179179
```dart
180180
...
181-
final String token = await sdk.login();
182-
// or sdk.login(type: AuthFlowType.pkce) for apply pkce flow
181+
final String token = await sdk.login(context: context);
182+
// or sdk.login(type: AuthFlowType.pkce, context: context) for apply pkce flow
183183
...
184-
await sdk.register();
185-
// or sdk.register(type: AuthFlowType.pkce) for apply pkce flow
184+
await sdk.register(context: context);
185+
// or sdk.register(type: AuthFlowType.pkce, context: context) for apply pkce flow
186186
...
187187
```
188188

0 commit comments

Comments
 (0)