Function AccountAccess
-
AccountAccess(
__namedParameters: {
client: {
confirmEmailChange: (
body: EmailChangeConfirmRequest,
) => Promise<Record<string, string>>;
getProfile: (signal?: AbortSignal) => Promise<ShopUserProfile>;
getSettings: (signal?: AbortSignal) => Promise<PublicShopSettings>;
login: (body: UserLoginRequest) => Promise<AccountLoginResponse>;
logout: () => Promise<Record<string, string>>;
register: (
body: ShopUserProfileCreateRequest,
) => Promise<Record<string, string>>;
requestPasswordReset: (
body: PasswordResetRequest,
) => Promise<Record<string, string>>;
setPassword: (
body: PasswordResetConfirmRequest,
) => Promise<Record<string, string>>;
verifyEmail: (
body: EmailVerificationRequest,
) => Promise<Record<string, string>>;
};
onAuthenticated: () => void;
onGuest?: () => void;
privacyUrl?: string;
returnPath: string;
termsUrl?: string;
},
): ElementParameters
- __namedParameters: {
client: {
confirmEmailChange: (
body: EmailChangeConfirmRequest,
) => Promise<Record<string, string>>;
getProfile: (signal?: AbortSignal) => Promise<ShopUserProfile>;
getSettings: (signal?: AbortSignal) => Promise<PublicShopSettings>;
login: (body: UserLoginRequest) => Promise<AccountLoginResponse>;
logout: () => Promise<Record<string, string>>;
register: (
body: ShopUserProfileCreateRequest,
) => Promise<Record<string, string>>;
requestPasswordReset: (
body: PasswordResetRequest,
) => Promise<Record<string, string>>;
setPassword: (
body: PasswordResetConfirmRequest,
) => Promise<Record<string, string>>;
verifyEmail: (
body: EmailVerificationRequest,
) => Promise<Record<string, string>>;
};
onAuthenticated: () => void;
onGuest?: () => void;
privacyUrl?: string;
returnPath: string;
termsUrl?: string;
}-
client: {
confirmEmailChange: (
body: EmailChangeConfirmRequest,
) => Promise<Record<string, string>>;
getProfile: (signal?: AbortSignal) => Promise<ShopUserProfile>;
getSettings: (signal?: AbortSignal) => Promise<PublicShopSettings>;
login: (body: UserLoginRequest) => Promise<AccountLoginResponse>;
logout: () => Promise<Record<string, string>>;
register: (
body: ShopUserProfileCreateRequest,
) => Promise<Record<string, string>>;
requestPasswordReset: (
body: PasswordResetRequest,
) => Promise<Record<string, string>>;
setPassword: (
body: PasswordResetConfirmRequest,
) => Promise<Record<string, string>>;
verifyEmail: (
body: EmailVerificationRequest,
) => Promise<Record<string, string>>;
}Stable client instance used for API requests.
-
confirmEmailChange: (body: EmailChangeConfirmRequest) => Promise<Record<string, string>>
Confirm a one-time email change token.
-
getProfile: (signal?: AbortSignal) => Promise<ShopUserProfile>
Load the authoritative authenticated profile. Optional signal cancels the read.
-
getSettings: (signal?: AbortSignal) => Promise<PublicShopSettings>
Read public installation settings. Optional signal cancels the request.
-
login: (body: UserLoginRequest) => Promise<AccountLoginResponse>
Sign in through the host proxy; browser JSON must omit upstream access tokens.
-
logout: () => Promise<Record<string, string>>
Invalidate the current host session.
-
register: (body: ShopUserProfileCreateRequest) => Promise<Record<string, string>>
Request registration without revealing account existence.
-
requestPasswordReset: (body: PasswordResetRequest) => Promise<Record<string, string>>
Request a reset email without revealing account existence.
-
setPassword: (body: PasswordResetConfirmRequest) => Promise<Record<string, string>>
Set the account password from a one-time token.
-
verifyEmail: (body: EmailVerificationRequest) => Promise<Record<string, string>>
Confirm a one-time email verification token.
-
-
onAuthenticated: () => void
Refresh the host session after successful authentication.
-
OptionalonGuest?: () => voidContinue in the host guest flow when supplied. Optional; omitted unless supplied by the host or backend.
-
OptionalprivacyUrl?: stringHost privacy policy URL.
-
returnPath: string
Safe same-origin path to visit after account authentication.
-
OptionaltermsUrl?: stringHost terms and conditions URL.
-
Returns Element
- __namedParameters: {
Authentication lives in a portal so this entry can also be used inside booking forms.