Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Amplify, { Auth } from 'aws-amplify';
  2. import aws_exports from './aws-exports';
  3.  
  4. Amplify.configure(aws_exports);
  5.  
  6. Auth.signUp({
  7.     username: "j005u",
  8.     password: "Qwerty12#",
  9.     email: "j00n45@gmail.com"
  10.     // other custom attributes if has been set in Cognito
  11.     // myAttr: ...
  12.     })
  13.     .then(data => console.log(data))
  14.     .catch(err => console.log(err));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement