Comments (2)
@developerjohan01 any luck with this? The amplify doc is so implement on this section. How does one actually implement static getItem(key: string): string; in react js? I am so confused
from docs.
@max77p In my case, I could use the default behaviour.
As you probably know you don't have to implement your own storage.
When using Authentication with AWS Amplify, you donβt need to refresh Amazon Cognito tokens manually. The tokens are automatically refreshed by the library when necessary.
and
Security Tokens like IdToken or AccessToken are stored in localStorage for the browser and in AsyncStorage for React Native.
https://aws-amplify.github.io/docs/js/authentication#managing-security-tokens
from docs.
Related Issues (20)
- "Build settings" and "Environment variables" not accessible in console for Gen 1 App after Gen 2 update
- handling "CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED" with aws-amplify/auth
- [missing-page] HOT 1
- Add troubleshooting section for micro-frontend support
- Add troubleshooting section for UnexpectedSignInInterruptionException errors with Safari
- Where is the content about `cron jobs` on Amplify Gen2's documentation? HOT 2
- Monorepo documentation is incomplete/unclear HOT 3
- Confirm Sign Docs are Missing
- mistake monorepo root path
- How to use Amplify datastore in Ionic/Capacitor project?
- Fix S3 bucket policy example to prevent "action does not apply to any resources in statement" error
- Gen 2 Quickstart guide: having to refresh browser to see updates HOT 1
- Event Bridge example with L2 Rule construct instead of L1 Cfn HOT 3
- Gen 2 Quickstart guide: missing `npm install` when setting up local environment HOT 1
- Gen 2 Quickstart guide: add section on deleting app
- Update improper text regarding cacheControl changes in v6
- Default name for GRAPHQL_ENDPOINT is incorrect
- Migrating DataStore to Gen 2
- Amplify Gen 2 Angular Documentation needs updates
- Reference to Amplify Studio in Gen 2 docs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.