I am trying to destructure payload from idToken within userData.
payload
idToken
userData
userData is of type CognitoUserSession
CognitoUserSession