Skip to content

Conversation

yuvalotem1
Copy link
Contributor

@yuvalotem1 yuvalotem1 commented Nov 27, 2023

Create provideFrontegg function to provide all frontegg providers in the root of the application.
using this function will look like this -

// inside app.config.ts created by angular/cli 17
import { ApplicationConfig } from '@angular/core';
import { provideRouter } from '@angular/router';
import { routes } from './app.routes';
import { provideFrontegg } from '@frontegg/angular';

const fronteggConfig = {
  contextOptions: {
    baseUrl: 'https://yuvaldev.stg.frontegg.com',
  }
}

export const appConfig: ApplicationConfig = {
  providers: [
    provideRouter(routes),
    provideFrontegg(fronteggConfig),
  ],
};

The main gap is currently using AuthorizedContentDirective won't come out of the box and will require extra configuration by adding FronteggAppModule to the app.module.ts components imports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant