flutter_cognito_plugin 0.0.7 copy "flutter_cognito_plugin: ^0.0.7" to clipboard
flutter_cognito_plugin: ^0.0.7 copied to clipboard

outdated

AWS Cognito plugin for flutter.

Flutter Cognito Plugin #

An AWS Cognito plugin for flutter. Supports both iOS and Android.

Sponsor

pub package

Installation #

open 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.


Now, just follow the regular flutter plugin installation on Dart Pub.

Usage #

The plugin comes with a showcase app that will let you try all features; see if you setup the awsconfiguration.json correctly.

Example Screenshot

It's present in the usual example directory

$ git clone https://github.com/pycampers/flutter_cognito_plugin.git
$ cd flutter_cognito_plugin/example
$ flutter run
25
likes
0
pub points
49%
popularity

Publisher

unverified uploader

AWS Cognito plugin for flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_cognito_plugin