ng-smart-on-fhir
Version:
[](https://srdc.com.tr/en)
11 lines (10 loc) • 675 B
TypeScript
import { Routes } from "@angular/router";
/**
* Routes wrapper to add required components to execute Smart App Launch and Login flows
* @param routes - Other application routes
* @param redirectTo - Redirection after login
* @param method - Allowed authentication flows: launch/client(login)/both
* @param redirectToLoginIfUnauthorized - If true, adds auth guards to the application components
* @param enableShc - If true, offline mode is allowed using Smart Health Cards
*/
export declare const withSmartHandlerRoutes: (routes: Routes, redirectTo: string, method: 'launch' | 'client' | 'both', redirectToLoginIfUnauthorized: boolean, enableShc?: boolean) => Routes;