UNPKG

@base44/sdk

Version:

JavaScript SDK for Base44 API

18 lines (17 loc) 771 B
import { AxiosInstance } from "axios"; /** * Creates the SSO module for the Base44 SDK * @param {import('axios').AxiosInstance} axios - Axios instance * @param {string} appId - Application ID * @param {string} [userToken] - User authentication token * @param {string} [serviceToken] - Service role authentication token * @returns {Object} SSO module with SSO authentication methods */ export declare function createSsoModule(axios: AxiosInstance, appId: string, userToken?: string): { /** * Get current user sso access token * @param {string} userid - User ID to include as path parameter * @returns {Promise<Object>} Current user sso access_token */ getAccessToken(userid: string): Promise<import("axios").AxiosResponse<any, any>>; };