Learn more about advanced workflows in the Amplify auth category. This includes subscribing to events, identity pool federation, auth-related Lambda triggers and working with AWS service objects.
FB; fb.getLoginStatus(response => { if (response.status === 'connected') ... After
the federated login, you can retrieve related JWT tokens from the local cache ...