Closed HidekiHiguchi closed 10 months ago
The issue was solved with the following workaround:
class CustomFunctionProvider extends FunctionAuthProvider {
const CustomFunctionProvider();
@override
Future<String?> getLatestAuthToken() async {
String? token = (await Amplify.Auth.fetchAuthSession() as CognitoAuthSession)
.userPoolTokensResult.value.accessToken.toJson();
return '{"accessToken": "$token"}';
}
}
Hello, I ran into this issue while configuring a new GraphQL lambda authorizer on a new project, As you can see from the issue I had openned in amplify-flutter repository
https://github.com/aws-amplify/amplify-flutter/issues/3480
The lambda authorizer is not being called whenever I pass the cognito generated token, but any other string is getting through, is this the expected behavior?