How to use Connections to authenticate users to external services
getUserConnection
/getWorkspaceConnection
will throw an error.
The App SDK handles this for you by catching the error and showing a prompt that asks the user to connect their account.