.authenticate
should be called at the beginning of your application's lifecycle in all cases. This is to make sure that the userToken
is always as fresh as possible, with respect to your user's existing session on your own site. You may reference Installing the Connect SDK for a detailed explanation on how to use .authenticate
. .authenticate
has been called and the Promise it returns has resolved, you can call .connect
to launch your Connect Portal for a specific integration provider. You can find the integrationType
identifier you need in the Overview page for the integration.integrationType
for the Portal to appear. Otherwise, this function does nothing..getUser
to retrieve the currently authenticated user and their connected integration state.