Revert "Support refresh tokens (#7802)"
This reverts commit 839593412c
.
This commit is contained in:
parent
81f52283cf
commit
aba61fa390
9 changed files with 25 additions and 504 deletions
|
@ -37,7 +37,6 @@ import AuthBody from "../../views/auth/AuthBody";
|
|||
import AuthHeader from "../../views/auth/AuthHeader";
|
||||
import InteractiveAuth from "../InteractiveAuth";
|
||||
import Spinner from "../../views/elements/Spinner";
|
||||
import { TokenLifecycle } from "../../../TokenLifecycle";
|
||||
|
||||
interface IProps {
|
||||
serverConfig: ValidatedServerConfig;
|
||||
|
@ -416,7 +415,6 @@ export default class Registration extends React.Component<IProps, IState> {
|
|||
initial_device_display_name: this.props.defaultDeviceDisplayName,
|
||||
auth: undefined,
|
||||
inhibit_login: undefined,
|
||||
refresh_token: TokenLifecycle.instance.isFeasible,
|
||||
};
|
||||
if (auth) registerParams.auth = auth;
|
||||
if (inhibitLogin !== undefined && inhibitLogin !== null) registerParams.inhibit_login = inhibitLogin;
|
||||
|
|
|
@ -33,7 +33,6 @@ import AccessibleButton from '../../views/elements/AccessibleButton';
|
|||
import Spinner from "../../views/elements/Spinner";
|
||||
import AuthHeader from "../../views/auth/AuthHeader";
|
||||
import AuthBody from "../../views/auth/AuthBody";
|
||||
import { TokenLifecycle } from "../../../TokenLifecycle";
|
||||
|
||||
const LOGIN_VIEW = {
|
||||
LOADING: 1,
|
||||
|
@ -155,7 +154,6 @@ export default class SoftLogout extends React.Component<IProps, IState> {
|
|||
},
|
||||
password: this.state.password,
|
||||
device_id: MatrixClientPeg.get().getDeviceId(),
|
||||
refresh_token: TokenLifecycle.instance.isFeasible,
|
||||
};
|
||||
|
||||
let credentials = null;
|
||||
|
@ -189,7 +187,6 @@ export default class SoftLogout extends React.Component<IProps, IState> {
|
|||
const loginParams = {
|
||||
token: this.props.realQueryParams['loginToken'],
|
||||
device_id: MatrixClientPeg.get().getDeviceId(),
|
||||
refresh_token: TokenLifecycle.instance.isFeasible,
|
||||
};
|
||||
|
||||
let credentials = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue