- move config requiredVariables to contants
All checks were successful
Code quality checks / biome (push) Successful in 13s
All checks were successful
Code quality checks / biome (push) Successful in 13s
- change register email - add verify route ( mostly still needs to be tested
This commit is contained in:
parent
83b71f62cf
commit
fff3c3ca50
16 changed files with 482 additions and 89 deletions
|
@ -2,7 +2,8 @@ type Environment = {
|
|||
port: number;
|
||||
host: string;
|
||||
development: boolean;
|
||||
fqdn: string;
|
||||
frontendFqdn: string;
|
||||
backendFqdn: string;
|
||||
};
|
||||
|
||||
export type { Environment };
|
||||
|
|
|
@ -25,9 +25,15 @@ interface UrlValidationResult extends validationResult {
|
|||
normalizedUrl?: string;
|
||||
}
|
||||
|
||||
type simpleConfigValidation = {
|
||||
isValid: boolean;
|
||||
errors: string[];
|
||||
};
|
||||
|
||||
export type {
|
||||
genericValidation,
|
||||
validationResult,
|
||||
UrlValidationOptions,
|
||||
UrlValidationResult,
|
||||
simpleConfigValidation,
|
||||
};
|
||||
|
|
|
@ -2,5 +2,6 @@ export * from "./base";
|
|||
export * from "./responses";
|
||||
export * from "./register";
|
||||
export * from "./login";
|
||||
export * from "./verify";
|
||||
|
||||
export * from "./update";
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
interface UpdatePasswordRequest {
|
||||
currentPassword: string;
|
||||
newPassword: string;
|
||||
logoutAllSessions?: boolean; // defaults to false
|
||||
}
|
||||
|
||||
export type { UpdatePasswordRequest };
|
13
types/server/requests/user/verify.ts
Normal file
13
types/server/requests/user/verify.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import type { BaseResponse } from "../base";
|
||||
import type { UserResponse } from "./base";
|
||||
|
||||
interface VerifyEmailResponse extends BaseResponse {
|
||||
user?: UserResponse;
|
||||
}
|
||||
|
||||
interface VerificationData {
|
||||
userId: string;
|
||||
email: string;
|
||||
}
|
||||
|
||||
export type { VerifyEmailResponse, VerificationData };
|
Loading…
Add table
Add a link
Reference in a new issue