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

expo-amplify-appauth

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-amplify-appauth

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Template for making easy-to-work-with tempates

expo-amplify-appauth

The Problem

AppAuth is awesome! It works great getting an authentication code for AWS Cognito! Then things break down. This package wraps AppAuth promptAsync pattern to automatically populate the Auth and Credentials objects from AWS Amplify front-end components to allow seamless communication with Cognito-authenticated AWS services.

This has been tested on user pools, but not identity pools.

expo-amplify-appauth - v1.0.1

expo-amplify-appauth - v1.0.1

Table of contents

References

  • default

Functions

References

default

Renames and exports: useAmplifyAppAuth

Functions

useAmplifyAppAuth

useAmplifyAppAuth(config): Object

Parameters
NameTypeDescription
configObjectOptions for initializing Amplify authentication using AppAuth in Expo
config.authorizationEndpoint?string-
config.clientIdstring-
config.clientSecret?string-
config.domain?string-
config.endPoint?string-
config.region?string-
config.scopes?string[]Oauth scopes (defaults to [openid], which is fine for most use cases)
config.tokenEndpoint?string-
config.userPoolIdstring-
Returns

Object

NameType
currentUserundefined | CognitoUser
errorundefined | string
isLoggedInboolean
loadingboolean
promptAsync(...args: any[]) => Promise<AuthSessionResult>
Defined in

index.ts:38

FAQs

Package last updated on 02 Jun 2021

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