File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
1818 nameIdFormatToUrn ,
1919 extractSamlMessage ,
2020 buildPostForm ,
21+ type HttpMethodType ,
2122 type Logger ,
2223 type SAMLSPMetaDataOptions ,
2324 type SamlAttribute ,
@@ -351,7 +352,7 @@ export class SAMLIssuer {
351352 */
352353 async initiateLogout (
353354 sessionId : string ,
354- method : HttpMethod = HttpMethod . REDIRECT ,
355+ method : HttpMethodType = HttpMethod . REDIRECT ,
355356 ) : Promise < SAMLResponse | null > {
356357 const samlSession = await this . config . getSAMLSession ?.( sessionId ) ;
357358 if ( ! samlSession ?. _lassoSessionDump ) {
Original file line number Diff line number Diff line change @@ -46,11 +46,19 @@ export {
4646 AuthnContext ,
4747} from "./lasso-loader" ;
4848
49- // Re-export lasso types
49+ // Re-export lasso types with full names
5050export type {
5151 LassoServer ,
5252 LassoLogin ,
5353 LassoLogout ,
5454 LassoIdentity ,
5555 LassoSession ,
56+ HttpMethodType ,
57+ SignatureMethodType ,
5658} from "./lasso-loader" ;
59+
60+ // Backward-compatible type aliases (without Lasso prefix)
61+ export type { LassoLogin as Login } from "./lasso-loader" ;
62+ export type { LassoLogout as Logout } from "./lasso-loader" ;
63+ export type { LassoIdentity as Identity } from "./lasso-loader" ;
64+ export type { LassoSession as Session } from "./lasso-loader" ;
Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ export function tryLoadLassoSync(): boolean {
109109 if ( loadError ) return false ;
110110
111111 try {
112- // eslint-disable-next-line @typescript-eslint/no-require-imports
113112 lassoModule = require ( "lasso.js" ) ;
114113 return true ;
115114 } catch ( err ) {
Original file line number Diff line number Diff line change 77
88import {
99 loadLasso ,
10- getLasso ,
11- isLassoLoaded ,
1210 type LassoServer ,
1311 type ProviderInfo ,
1412} from "./lasso-loader" ;
You can’t perform that action at this time.
0 commit comments