Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { withFederated } from 'aws-amplify-react';
const logger = new Logger('JSignIn');
const FederatedButtons = (props) => (
<button style="{{">
Facebook
</button>
);
const Federated = withFederated(FederatedButtons);
const federated_data = {
google_client_id: '',
facebook_app_id: '__replace_with_your_facebook_app_id__',
amazon_client_id: ''
};
export default class JSignIn extends Component {
constructor(props) {
super(props);
this.signIn = this.signIn.bind(this);
this.checkContact = this.checkContact.bind(this);
this.changeState = this.changeState.bind(this);
this.inputs = {};
this.state = { error: '' }
}
import { AuthPiece, withFederated } from 'aws-amplify-react';
const logger = new Logger('LoginForm');
const FederatedButtons = (props) => (
<div>
<button size="large" color="blue">Facebook</button>
</div>
);
const Federated = withFederated(FederatedButtons);
const federated = {
facebook_app_id: '__replace_with_your_facebook_app_id__'
};
class LoginForm extends AuthPiece {
constructor(props) {
super(props);
this.checkContat = this.checkContact.bind(this);
this.signIn = this.signIn.bind(this);
}
checkContact(user) {
Auth.verifiedContact(user)
.then(data => {
import { AuthPiece, withFederated } from 'aws-amplify-react';
const logger = new Logger('LoginForm');
const FederatedButtons = (props) => (
<div>
<button size="large" color="blue">Facebook</button>
</div>
);
const Federated = withFederated(FederatedButtons);
const federated = {
facebook_app_id: '__replace_with_your_facebook_app_id__'
};
class LoginForm extends AuthPiece {
constructor(props) {
super(props);
this.checkContat = this.checkContact.bind(this);
this.signIn = this.signIn.bind(this);
}
checkContact(user) {
Auth.verifiedContact(user)
.then(data => {