Angular helper to get current country by TimeZone
Versions
Angular version | package version |
---|
15.x | 15.x |
16.x | 15.x, 16.x |
Installation
npm install --save @solidexpert/auth
Usage
Add AuthModule
to your list of module imports:
import { AuthenticationService, AuthGuard, AuthInterceptor,PermissionInterceptor, AuthModule, IAuthenticationService } from '@solidexpert/auth';
@NgModule({
imports: [
...
AuthModule,
...
],
Setup your providers to use Solid Auth
providers: [
...,
AuthGuard,
{ provide: IAuthenticationService, useClass: AuthenticationService },
{
provide: 'APP_SITE_FULL_URL',
useValue: environment.sitePath,
},
{
provide : HTTP_INTERCEPTORS,
useClass: AuthInterceptor,
multi : true
},
{
provide : HTTP_INTERCEPTORS,
useClass: PermissionInterceptor,
multi : true
},
...
],
setup yout callback url url
export const appRoutes: Route[] = [
...
{ path: 'callback', component: CallbackAuthComponent, canActivate: [callbackGuard], }
...
];
Done!