mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 03:20:46 +02:00
Chore/v2/onboarding flow cleanup (#5065)
This commit is contained in:
@@ -9,11 +9,26 @@ export interface AccountData {
|
||||
saml2Login: boolean;
|
||||
}
|
||||
|
||||
export interface LoginPageData {
|
||||
showDefaultCredentials: boolean;
|
||||
firstTimeSetup: boolean;
|
||||
enableLogin: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Account Service
|
||||
* Provides functions to interact with account-related backend APIs
|
||||
*/
|
||||
export const accountService = {
|
||||
/**
|
||||
* Get login page data (includes showDefaultCredentials flag)
|
||||
* This is a public endpoint - doesn't require authentication
|
||||
*/
|
||||
async getLoginPageData(): Promise<LoginPageData> {
|
||||
const response = await apiClient.get<LoginPageData>('/api/v1/proprietary/ui-data/login');
|
||||
return response.data;
|
||||
},
|
||||
|
||||
/**
|
||||
* Get current user account data
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user