2019-12-07 16:58:52 +05:30
|
|
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
2019-12-08 00:32:00 +05:30
|
|
|
import { AuthContext } from 'app/services/authFlow';
|
2019-12-07 16:58:52 +05:30
|
|
|
|
|
|
|
export default class AbstractState {
|
2020-01-18 02:07:52 +05:30
|
|
|
resolve(
|
|
|
|
context: AuthContext,
|
|
|
|
payload: Record<string, any>,
|
|
|
|
): Promise<void> | void {}
|
|
|
|
goBack(context: AuthContext): void {
|
2019-12-07 16:58:52 +05:30
|
|
|
throw new Error('There is no way back');
|
|
|
|
}
|
2020-01-18 02:07:52 +05:30
|
|
|
reject(context: AuthContext, payload?: Record<string, any>): void {}
|
|
|
|
enter(context: AuthContext): Promise<void> | void {}
|
|
|
|
leave(context: AuthContext): void {}
|
2019-12-07 16:58:52 +05:30
|
|
|
}
|