erp-platform/ui/src/proxy/auth/models.ts
2025-11-09 13:30:15 +03:00

35 lines
623 B
TypeScript

export type SignInCredential = {
userName: string
password: string
twoFactorCode: string
captchaResponse: string
}
export type SignInResponse = {
access_token: string
expires_in: number
refresh_token: string
token_type: string
}
export type FailedSignInResponse = {
result: number
pResult: number
description: string
}
export type FailedRefreshResponse = {
error: string
error_description: string
error_uri: string
}
export type SignUpResponse = SignInResponse
export type SignUpCredential = {
email: string
password: string
name: string
surname: string
captchaResponse: string
}