npm install
npm run serve
npm run build
npm run test
npm run lint
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.
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();
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.