Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onLogout() {
hello('msft').logout().then(
() => this.props.history.push('/'),
e => console.error(e.error.message)
);
}
login(){
return hello().login();
}
}
getAccessToken() {
const msft = hello('msft').getAuthResponse();
const accessToken = msft.access_token;
return accessToken;
}
constructor(props) {
super(props);
const msft = hello('msft').getAuthResponse();
this.state = {
contacts: [],
token: msft.access_token
};
this.onWriteToExcel = this.onWriteToExcel.bind(this);
this.onLogout = this.onLogout.bind(this);
}