paint-brush
A React HOC for AWS Cognito to Simplify User Authenticationby@asellitti
190 reads

A React HOC for AWS Cognito to Simplify User Authentication

by Tony Sellitti32mAugust 31st, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A React HOC for AWS Cognito to Simplify User Authentication is a very common one across apps and platforms. Amazon Web Services offers Cognito as a solution for Web and Mobile apps, and it has pretty robust features to handle your Authentication needs. Here we describe a Higher Order Component for your ReactJS Web App, and how to configure Cognito. You can use any backend that is secured through JWT Tokens (e.g., API Gateway, etc.) When a user logs in, tokens will be provided to the client using our configured storage mechanism (in-memory, localStorage, or IndexedDB) After that, cognito-hoc handles all authentication flows using Cognito and AWS Amplify.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coins Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - A React HOC for AWS Cognito to Simplify User Authentication
Tony Sellitti HackerNoon profile picture
Tony Sellitti

Tony Sellitti

@asellitti

Partner & Principal Consultant at System Design Partners

About @asellitti
LEARN MORE ABOUT @ASELLITTI'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Tony Sellitti HackerNoon profile picture
Tony Sellitti@asellitti
Partner & Principal Consultant at System Design Partners

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here