Code Monkey home page Code Monkey logo

react-amplify-auth-context's Introduction

react-amplify-auth-context

Easy-to-use context provider for AWS Amplify authentication wrapper

Usage

npx react-amplify-auth-context [options]

react-amplify-auth-context - v2.0.1

Index

Variables

Functions

Variables

Provider

Provider: Provider‹undefined | object›

Defined in index.tsx:24


Const context

context: Context‹undefined | object› = createContext< | { Auth: typeof Auth; authState: string; authData: any; updateState: typeof updateState; checkAuthStatus: () => Promise; } | undefined

(undefined)

Defined in index.tsx:13

Functions

Const AuthProvider

AuthProvider(__namedParameters: object): Element‹›

Defined in index.tsx:28

Parameters:

__namedParameters: object

Name Type Default
children ReactNode -
debug boolean false

Returns: Element‹›


updateState

updateState(event: string, data?: any): void

Defined in index.tsx:25

Parameters:

Name Type
event string
data? any

Returns: void


Const useAuth

useAuth(): object

Defined in index.tsx:96

Returns: object

  • Auth: typeof Auth

  • authData: any

  • authState: string

  • checkAuthStatus(): function

    • (): Promise‹void›
  • updateState: typeof updateState


withAuthProvider

withAuthProvider(C: FC): FC

Defined in index.tsx:101

Parameters:

Name Type
C FC

Returns: FC

react-amplify-auth-context's People

Contributors

rhdeck avatar

Watchers

Ivan Breet avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.