flutter_cognito_plugin 0.0.5
flutter_cognito_plugin: ^0.0.5 copied to clipboard
An AWS Cognito plugin for flutter.
Flutter Cognito Plugin #
An AWS Cognito plugin for flutter. Supports both iOS and Android.
Installation #
ios/Podfile -- Ensure ios version is set to a minimum of 9.0
.
platform :ios, '9.0'
Add an awsconfiguration.json
file to android/app/src/main/res/raw/awsconfiguration.json
and ios/awsconfiguration.json
This is typically what one looks like -
{
"Version": "1.0",
"CredentialsProvider": {
"CognitoIdentity": {
"Default": {
"PoolId": "REPLACE_ME",
"Region": "REPLACE_ME"
}
}
},
"IdentityManager": {
"Default": {}
},
"CognitoUserPool": {
"Default": {
"AppClientSecret": "REPLACE_ME",
"AppClientId": "REPLACE_ME",
"PoolId": "REPLACE_ME",
"Region": "REPLACE_ME"
}
}
}
This plugin supports the amplify SDK for android and iOS,
and the the amplify cli can be used to generate the awsconfiguration.json
file.