@solidexpert/auth
TypeScript icon, indicating that this package has built-in type declarations

20.0.41 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i @solidexpert/auth

Weekly Downloads

66

Version

20.0.41

License

none

Unpacked Size

64.2 kB

Total Files

22

Last publish

Collaborators

  • ilunts
  • siarhei.shchypanau