Constructors
constructor
- new Auth(api: Api): Auth
Properties
api
Methods
getMyProfile
- getMyProfile(useCache?: boolean): Promise<ProfileData>
getUser
- getUser(username: string): Promise<UserApiData>
login
- login(username: string, password: string): Promise<ProfileData>
Parameters
- username: string
- password: string
updateUser
- updateUser(
data:
| ChangePasswordFormData
| Partial<
Partial<
{
cn: string;
landingPage: string;
mail: string;
mobile: string;
note: string;
preferredLanguage: string;
sn: string;
timezone: string;
},
>,
>,
): Promise<ApiResponse<void, void>> Parameters
- data:
| ChangePasswordFormData
| Partial<
Partial<
{
cn: string;
landingPage: string;
mail: string;
mobile: string;
note: string;
preferredLanguage: string;
sn: string;
timezone: string;
},
>,
>
Returns Promise<ApiResponse<void, void>>