@sasjs/adapter
Version:
JavaScript adapter for SAS
24 lines (23 loc) • 855 B
TypeScript
import { SasAuthResponse } from '@sasjs/utils/types';
export declare const mockLoginAuthoriseRequiredResponse = "<form id=\"application_authorization\" action=\"/SASLogon/oauth/authorize\" method=\"POST\"><input type=\"hidden\" name=\"X-Uaa-Csrf\" value=\"2nfuxIn6WaOURWL7tzTXCe\"/>";
export declare const mockAuthResponse: SasAuthResponse;
export declare const mockSasjsAuthResponse: {
access_token: string;
refresh_token: string;
};
export declare const generateToken: (timeToLiveSeconds: number) => string;
export declare const mockedCurrentUserApi: (username: string) => {
creationTimeStamp: string;
modifiedTimeStamp: string;
id: string;
type: string;
name: string;
links: {
method: string;
rel: string;
href: string;
uri: string;
type: string;
}[];
version: number;
};