website refactor
This commit is contained in:
10
apps/website/lib/services/auth/AuthPageParams.ts
Normal file
10
apps/website/lib/services/auth/AuthPageParams.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Auth Page Parameters
|
||||
*
|
||||
* Input parameters for auth page processing.
|
||||
*/
|
||||
|
||||
export interface AuthPageParams {
|
||||
returnTo?: string | null;
|
||||
token?: string | null;
|
||||
}
|
||||
@@ -10,11 +10,7 @@ import { LoginPageDTO } from './types/LoginPageDTO';
|
||||
import { ForgotPasswordPageDTO } from './types/ForgotPasswordPageDTO';
|
||||
import { ResetPasswordPageDTO } from './types/ResetPasswordPageDTO';
|
||||
import { SignupPageDTO } from './types/SignupPageDTO';
|
||||
|
||||
export interface AuthPageParams {
|
||||
returnTo?: string | null;
|
||||
token?: string | null;
|
||||
}
|
||||
import { AuthPageParams } from './AuthPageParams';
|
||||
|
||||
export class AuthPageService {
|
||||
async processLoginParams(params: AuthPageParams): Promise<Result<LoginPageDTO, string>> {
|
||||
|
||||
Reference in New Issue
Block a user