Skip to main content

Interface: UseAuthReturn

Defined in: composables/vue/useAuth.ts:107

Properties

error

error: Ref<string | null>

Defined in: composables/vue/useAuth.ts:109


forgotPassword

forgotPassword: (email) => Promise<Result<void, string>>

Defined in: composables/vue/useAuth.ts:125

Parameters

email

string

Returns

Promise<Result<void, string>>


loading

loading: Ref<boolean>

Defined in: composables/vue/useAuth.ts:108


login

login: (email, password, onLoginSubmit?) => Promise<Result<AuthSuccess, string>>

Defined in: composables/vue/useAuth.ts:110

Parameters

email

string

password

string

onLoginSubmit?

(email, password) => Promise<Contact | Customer>

Returns

Promise<Result<AuthSuccess, string>>


registerContact

registerContact: (input, preferredLanguage?, autoLogin?) => Promise<Result<AuthSuccess, string>>

Defined in: composables/vue/useAuth.ts:115

Parameters

input

RegisterContactInput

preferredLanguage?

string

autoLogin?

boolean

Returns

Promise<Result<AuthSuccess, string>>


registerCustomer

registerCustomer: (input, preferredLanguage?, autoLogin?) => Promise<Result<AuthSuccess, string>>

Defined in: composables/vue/useAuth.ts:120

Parameters

input

RegisterCustomerInput

preferredLanguage?

string

autoLogin?

boolean

Returns

Promise<Result<AuthSuccess, string>>