I am starting to find my way around using AWS. But I have a simple question for which I have not found an answer by searching the net an trying what came to my mind. Here is the relevant working code:
override func viewDidLoad() {
super.viewDidLoad()
...
if AWSSignInManager.sharedInstance().isLoggedIn {
print("We are already logged in!")
// I would like to display the user identification of the current user.
}
...
}
At the place of the comment I would like to print the user ID of the current user (when someone is logged in). I presume there has to be a way. How can I do that?