Better errors for SSO failures

This commit is contained in:
Michael Telatynski 2021-02-01 16:25:50 +00:00
parent 132057d4a7
commit 5d86c2f8e0
5 changed files with 49 additions and 5 deletions

View file

@ -325,6 +325,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
Lifecycle.attemptTokenLogin(
this.props.realQueryParams,
this.props.defaultDeviceDisplayName,
this.getFragmentAfterLogin(),
).then(async (loggedIn) => {
if (this.props.realQueryParams?.loginToken) {
// remove the loginToken from the URL regardless