import React from 'react'; const Qsso = require('./qsso-lib'); class QssoComponent extends React.Component{ componentDidMount(){ Qsso.attach('qsso-login', '/api/user/login_by_token'); } render(){ return ; } } module.exports = function(){ this.bindHook('third_login', QssoComponent); };