Skip to content

Commit 77505ee

Browse files
committed
added limitations section to flutter sdk documentation
1 parent 176cd3e commit 77505ee

File tree

1 file changed

+13
-36
lines changed

1 file changed

+13
-36
lines changed

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

Lines changed: 13 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
page_id: 4ab29e69-2f16-43f6-9ad9-862408abcc2c
33
title: Flutter SDK
4-
description: "Complete guide for Flutter SDK including authentication setup, Android/iOS configuration, PKCE flow, and mobile app integration for Flutter 3.10+ applications."
54
sidebar:
65
order: 21
76
relatedArticles:
@@ -11,32 +10,6 @@ head:
1110
attrs:
1211
property: "og:image"
1312
content: "https://kinde.com/assets/images/open-graph/DOCS-SSI-SDK_Flutter.png"
14-
topics:
15-
- developer-tools
16-
- sdks
17-
- flutter
18-
- native
19-
sdk:
20-
- flutter
21-
languages:
22-
- dart
23-
- groovy
24-
- xml
25-
audience:
26-
- developers
27-
complexity: intermediate
28-
keywords:
29-
- flutter sdk
30-
- dart
31-
- mobile authentication
32-
- android setup
33-
- ios setup
34-
- pkce flow
35-
- custom schemes
36-
updated: 2024-01-15
37-
featured: false
38-
deprecated: false
39-
ai_summary: Complete guide for Flutter SDK including authentication setup, Android/iOS configuration, PKCE flow, and mobile app integration for Flutter 3.10+ applications.
4013
---
4114

4215
The Kinde’s Flutter SDK allows developers to integrate Kinde Authentication into their Flutter projects. Integrate [Kinde](https://kinde.com/) authentication with your Flutter app. When you configure, register, log in, and log out, the authentication state is securely stored across app restarts.
@@ -110,8 +83,8 @@ KINDE_AUDIENCE=<your_kinde_audience>
11083
```bash
11184
KINDE_AUTH_DOMAIN=https://myapp.kinde.com
11285
KINDE_AUTH_CLIENT_ID=clientid
113-
KINDE_LOGIN_REDIRECT_URI=myapp://kinde_callback
114-
KINDE_LOGOUT_REDIRECT_URI=myapp://kinde_logoutcallback
86+
KINDE_LOGIN_REDIRECT_URI=com.kinde.myapp://kinde_callback
87+
KINDE_LOGOUT_REDIRECT_URI=com.kinde.myapp://kinde_logoutcallback
11588
KINDE_AUDIENCE=myapp.kinde.com/api
11689
```
11790

@@ -151,13 +124,13 @@ Specify the custom scheme similar to the following but replace `<your_custom_sc
151124
<string>Editor</string>
152125
<key>CFBundleURLSchemes</key>
153126
<array>
154-
<string><your_custom_scheme>://</string>
127+
<string><your_custom_scheme></string>
155128
</array>
156129
</dict>
157130
</array>
158131
```
159132

160-
**Note:** `<your_custom_scheme>` has been defined previously as [`myapp`](http://com.kinde.app/) You can define your own custom scheme to correspond to the app name.
133+
**Note:** `<your_custom_scheme>` has been defined previously as [`com.kinde.app`](http://com.kinde.app/) You can define your own custom scheme to correspond to the package name.
161134

162135
## Set callback URLs
163136

@@ -173,8 +146,8 @@ Replace the values you see in `<code brackets>` with your own values.
173146
- Allowed logout redirect URLs: `<your_custom_scheme>://kinde_logoutcallback`
174147

175148
```dart
176-
loginRedirectUri: myapp://kinde_callback,
177-
logoutRedirectUri: myapp://kinde_logoutcallback,
149+
loginRedirectUri: com.kinde.myapp://kinde_callback,
150+
logoutRedirectUri: com.kinde.myapp://kinde_logoutcallback,
178151
```
179152

180153
5. Select **Save**.
@@ -704,6 +677,10 @@ int getTeamCount() {
704677
}
705678
```
706679

680+
## Limitations
681+
682+
- **WebView authentication on mobile:** When using the Flutter SDK on mobile platforms (iOS/Android), users will need to authenticate separately when accessing content in in-app WebViews. This occurs because the SDK uses ephemeral web authentication sessions for security, which do not share authentication state with WebViews. Authentication tokens are stored in native secure storage (Keychain/KeyStore) and are not accessible to WebView contexts, which maintain separate cookie storage. For applications requiring seamless authentication between native and web contexts, contact [[email protected]](mailto:[email protected]) for guidance.
683+
707684
## SDK API Reference
708685

709686
### `authDomain`
@@ -846,7 +823,7 @@ Extract the provided claim from the provided token type in the current session,
846823

847824
```dart
848825
claim: "string", 
849-
tokenKey?: TokenType "access_token" | "id_token
826+
tokenKey?: TokenType "access_token" | "id_token"
850827
```
851828

852829
**Usage:**
@@ -862,7 +839,7 @@ Returns the state of a given permission.
862839
**Arguments:**
863840

864841
```dart
865-
 key: "string
842+
 key: "string"
866843
```
867844

868845
**Usage:**
@@ -1049,7 +1026,7 @@ Get a string flag from the feature_flags claim of the `access_token`
10491026

10501027
```dart
10511028
code : "string"
1052-
defaultValue? : "string
1029+
defaultValue? : "string"
10531030
```
10541031

10551032
**Usage:**

0 commit comments

Comments
 (0)