- ๐ญ Iโm currently working at ... Amazon Web Services as a Senior Developer Advocate
- ๐ฑ Iโm currently teaching ... Vue.js
- ๐ฏ Iโm looking to collaborate on ... Vue.js
- ๐ค Iโm looking for help with ... React Server Components
- ๐ฌ Ask me about ... Anything
- ๐ซ How to reach me: ... Twitter
- ๐ซ Also on YouTube: ... YouTube
- ๐ Pronouns: ... He/Him
- โก Fun fact: ... I am half Finnish
aws-auth-example's Introduction
aws-auth-example's People
Forkers
faizanurfi ashwinaravind hoodedman antelio priyank hhaydentechtonic diegogalvao rlam3 alexanderg15 hamrounix abishek1718 simz ivosanchez krcummings1 illiaderhun luuthanhtu shruti2323 anandmandilwar luuthanhtu020296 sunhonghaoparis romainbeaussartaws-auth-example's Issues
Simplified route guard
Hei @ErikCH,
I'm going through your Learn Vue.js with Authentication in 30 Minutes tutorial. Great work!
When I tried to use the route guard code from that video and this repository, it didn't seem to update the user
variable in the promise .then
callback. I was able to simplify the code and get it working with async
/await
:
import { Auth } from 'aws-amplify';
router.beforeResolve(async (to, from, next) => {
if (to.matched.some(record => record.meta.requiresAuth)) {
const user = await Auth.currentAuthenticatedUser();
if (!user) {
next({ path: "/login" });
} else {
next();
}
}
// default to next
next();
});
Using pre configured cognito user pool
Hi Erik,
Fantastic tutorial on youtube. Very helpful
I need to set this up with a preconfigured Cognito User pool. ie. I'm not running amplify push
to generate the aws-exports.js.
I can't find any documentation about what this file looks like so I can create it manually.
Do you know how to grab this file from a cognito user pool?
Could you provide your config with the variables redacted so I can use my own?
I just need to know what the file looks like.
Thanks.
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.