From 4ca231d90ae552ea493f176c26416c54031b041b Mon Sep 17 00:00:00 2001 From: Ben Pickford Date: Mon, 30 Sep 2024 11:51:43 +1000 Subject: [PATCH] fix: update console level --- src/SDK/KindeSDK.ts | 5 ++++- src/SDK/Utils.ts | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/SDK/KindeSDK.ts b/src/SDK/KindeSDK.ts index 0f84787..ab7de07 100644 --- a/src/SDK/KindeSDK.ts +++ b/src/SDK/KindeSDK.ts @@ -205,7 +205,10 @@ class KindeSDK extends runtime.BaseAPI { }); return true; } catch (error: any) { - console.error(error.message); + console.error( + 'Something went wrong when trying to revoke token', + error.message + ); return false; } } diff --git a/src/SDK/Utils.ts b/src/SDK/Utils.ts index b3260d9..8668b56 100644 --- a/src/SDK/Utils.ts +++ b/src/SDK/Utils.ts @@ -180,14 +180,14 @@ export const OpenWebInApp = async ( if (response.type === 'success' && response.url) { return kindeSDK.getToken(response.url); } - console.error( + console.warn( 'Something wrong when trying to authenticate. Reason: ', response.type ); return null; } catch (error: any) { console.error( - 'Something wrong when trying to authenticate. Reason: ', + 'Something wrong when trying to authenticate.', error.message ); return null;