Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Amplify, { Auth } from 'aws-amplify';
- import aws_exports from './aws-exports';
- Amplify.configure(aws_exports);
- Auth.signUp({
- username: "j005u",
- password: "Qwerty12#",
- email: "j00n45@gmail.com"
- // other custom attributes if has been set in Cognito
- // myAttr: ...
- })
- .then(data => console.log(data))
- .catch(err => console.log(err));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement