jasdeep
jasdeep
KKinde
Created by jasdeep on 6/24/2024 in #💻┃support
How can I figure out whats gone wrong when I get this error?
No description
5 replies
KKinde
Created by jasdeep on 6/12/2024 in #💻┃support
flutter SDK and getToken
hi, I am using Flutter SDK and running into a situation where my accessToken and refreshToken have expired. As per docs I am using
Future<String> getNewToken() async {
String? token = await sdk.getToken();

if (token == null) {
// Redirect user to the login page
return 'Refresh Token Expired';
}

var box = await hiveEncryptedBox();
await box.put('token', token);

return token;
}
Future<String> getNewToken() async {
String? token = await sdk.getToken();

if (token == null) {
// Redirect user to the login page
return 'Refresh Token Expired';
}

var box = await hiveEncryptedBox();
await box.put('token', token);

return token;
}
method to return 'Refresh token Expired' string so that I can initiate a new login process but what I am getting is that
sdk.getToken();
sdk.getToken();
call is throwing 400 Bad Request error. The error response I get back is
{"error":"invalid_grant","error_description":"The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."}
{"error":"invalid_grant","error_description":"The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."}
I face no issues in refreshing accessTokens as long as refreshToken is valid. Can someone point out to me what am I missing here?
2 replies
KKinde
Created by jasdeep on 5/29/2024 in #💻┃support
IOS app review
Has anyone used kinde auth for IOS app??? Apple reviewers seems to have issue with "Create Account" screen with social login even if it is asking for user to enter their Name if the user does not exists in Kinde. Any tips on how to get around that?
6 replies
KKinde
Created by jasdeep on 5/28/2024 in #💻┃support
Error not found /api/auth/login
Hi, I keep getting this error lately in my Sveltekit app which is using Kinde auth at https://gfeed.app. Even though I am able to log in but in the background this error is raised. Would anyone have any idea to what might be going wrong?
4 replies
KKinde
Created by jasdeep on 4/24/2024 in #💻┃support
Has anyone used kinde_flutter_sdk to build android app?
I am having issues building android APK with kinde_flutter_sdk for auth. I install the SDK and without even using the sdk in the code just building the code to run on simulator I get the following error
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':flutter_inappwebview'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
> Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':flutter_inappwebview'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
> Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
I do have a namespace in the gradle build file and not sure whats causing this? Any pointers would be helpful... Flutter 3.19.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision 54e66469a9 (7 days ago) • 2024-04-17 13:08:03 -0700 Engine • revision c4cd48e186 Tools • Dart 3.3.4 • DevTools 2.31.1
3 replies
KKinde
Created by jasdeep on 4/18/2024 in #💻┃support
Newbie question: How do we save post login user into event.locals when using kinde with sveltekit?
HI, I am trying to use Kinde with my existing sveltekit project and wondering how are people using event.locals to save loggedin user and token. I can't seem to find in docs any example of the same? are people checking for isAuthenticated on every route?
9 replies