Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@falconeta/capacitor-aws-amplify

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@falconeta/capacitor-aws-amplify

plugin that handle amplify features

  • 6.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@falconeta/capacitor-aws-amplify

plugin that handle amplify features

Install

npm install @falconeta/capacitor-aws-amplify
npx cap sync

android config

Inside MainActivity

@Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    .
    .
    .
    if (data == null){
      Amplify.Auth.handleWebUISignInResponse(null);
    }

  }

Inside gradle

    // Amplify core dependency
    implementation 'com.amplifyframework:core:1.38.7'

    // AWS Cognito dependency
    implementation 'com.amplifyframework:aws-auth-cognito:1.38.7'

API

  • load(...)
  • signIn(...)
  • federatedSignIn(...)
  • fetchAuthSession()
  • getUserAttributes()
  • updateUserAttributes(...)
  • signOut()
  • deleteUser()
  • Interfaces
  • Type Aliases
  • Enums

load(...)

load(options: { cognitoConfig: AWSCognitoConfig; }) => Promise<void>
ParamType
options{ cognitoConfig: AWSCognitoConfig; }

signIn(...)

signIn(options: { email: string; password: string; }) => Promise<CognitoAuthSession>
ParamType
options{ email: string; password: string; }

Returns: Promise<CognitoAuthSession>


federatedSignIn(...)

federatedSignIn(options: { provider: CognitoHostedUIIdentityProvider; }) => Promise<CognitoAuthSession>
ParamType
options{ provider: CognitoHostedUIIdentityProvider; }

Returns: Promise<CognitoAuthSession>


fetchAuthSession()

fetchAuthSession() => Promise<CognitoAuthSession>

Returns: Promise<CognitoAuthSession>


getUserAttributes()

getUserAttributes() => Promise<{ status: AwsAmplifyPluginResponseStatus; userAttributes: Record<string, string>; }>

Returns: Promise<{ status: AwsAmplifyPluginResponseStatus; userAttributes: Record<string, string>; }>


updateUserAttributes(...)

updateUserAttributes(options: { attributes: { name: AuthUserAttributeKey | string; value: string; }[]; }) => Promise<{ status: AwsAmplifyPluginResponseStatus; userAttributes: Record<string, string>; }>
ParamType
options{ attributes: { name: string; value: string; }[]; }

Returns: Promise<{ status: AwsAmplifyPluginResponseStatus; userAttributes: Record<string, string>; }>


signOut()

signOut() => Promise<{ status: AwsAmplifyPluginResponseStatus; }>

Returns: Promise<{ status: AwsAmplifyPluginResponseStatus; }>


deleteUser()

deleteUser() => Promise<{ status: AwsAmplifyPluginResponseStatus; }>

Returns: Promise<{ status: AwsAmplifyPluginResponseStatus; }>


Interfaces

AWSCognitoConfig
PropType
aws_cognito_regionstring
aws_user_pools_idstring
aws_user_pools_web_client_idstring
aws_cognito_identity_pool_idstring
aws_mandatory_sign_instring
oauth{ domain: string; scope: string[]; redirectSignIn: string; redirectSignOut: string; responseType: 'code'; }
CognitoAuthSession
PropType
accessTokenstring
idTokenstring
identityIdstring
refreshTokenstring
deviceKeystring | null
statusAwsAmplifyPluginResponseStatus

Type Aliases

Record

Construct a type with a set of properties K of type T

{ [P in K]: T; }

Enums

AwsAmplifyPluginResponseStatus
MembersValue
Ok0
Ko-1
Cancelled-2
SignedOut-3
CognitoHostedUIIdentityProvider
MembersValue
Cognito'COGNITO'
Google'Google'
Facebook'Facebook'
Amazon'LoginWithAmazon'
Apple'SignInWithApple'
AuthUserAttributeKey
MembersValue
address'address'
birthDate'birthDate'
email'email'
familyName'familyName'
gender'gender'
givenName'givenName'
locale'locale'
middleName'middleName'
name'name'
nickname'nickname'
phoneNumber'phoneNumber'
picture'picture'
preferredUsername'preferredUsername'

Keywords

FAQs

Package last updated on 05 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc