AWS Cognito Authorization code grant flow without using the hosted UI
问题 Using AWS's Cognito without the hosted UI, given a username, and password I would like to receive an Authorization code grant without using the hosted ui. Is this possible? I am writing my own sign up, log in forms but cannot seem to find documentation on this subject. Currently I can use AWS.CognitoIdentityServiceProvider and the initiateAuth function to exchange username password for tokens, but I do not want to return those tokens in the redirect URL, I would rather return an authorization