Skip to content

Commit

Permalink
Merge pull request #46 from bmpickford/main
Browse files Browse the repository at this point in the history
fix: update console level
  • Loading branch information
DanielRivers authored Dec 4, 2024
2 parents 818ce98 + 4ca231d commit e64de34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/SDK/KindeSDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/SDK/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,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;
Expand Down

0 comments on commit e64de34

Please sign in to comment.