Wrap getUserInfo with trySafe in node SDK's getContext method. This method should not throw error if getUserInfo failed, it should return undefined for better development experience. If the developer want the handle the error manually, he can use client.getUserInfo instead.
Summary
Wrap
getUserInfo
withtrySafe
in node SDK'sgetContext
method. This method should not throw error ifgetUserInfo
failed, it should return undefined for better development experience. If the developer want the handle the error manually, he can useclient.getUserInfo
instead.This PR is similar to https://github.com/logto-io/js/pull/739
Testing
Local tested and exiting tests shoudl pass.
Checklist
.changeset