I have run into an issue with my Lambda function when invoking it through the AWS endpoint. The function is used for authentication of the Fitbit API, which requires a redir