Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export function initializer(keycloak: KeycloakService): () => Promise<any> {
- return (): Promise<any> => {
- return new Promise(async (resolve, reject) => {
- try {
- await keycloak.init({
- config: environment.keycloak,
- initOptions: {
- onLoad: 'login-required',
- checkLoginIframe: false
- },
- bearerExcludedUrls: []
- });
- resolve();
- } catch (error) {
- reject(error);
- }
- });
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement