20.0.47 • Published 10 months ago

@solidexpert/auth v20.0.47

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

Angular helper to get current country by TimeZone

Versions

Angular versionpackage version
15.x15.x
16.x15.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!

20.0.45

10 months ago

20.0.47

10 months ago

20.0.46

10 months ago

20.0.43

1 year ago

20.0.42

1 year ago

20.0.44

1 year ago

20.0.41

1 year ago

20.0.40

1 year ago

20.0.38

2 years ago

20.0.33

2 years ago

20.0.36

2 years ago

20.0.35

2 years ago

20.0.37

2 years ago

20.0.32

2 years ago

20.0.31

2 years ago

20.0.30

2 years ago

20.0.27

2 years ago

20.0.26

2 years ago

20.0.29

2 years ago

20.0.28

2 years ago

20.0.25

2 years ago

20.0.24

2 years ago

20.0.23

2 years ago

20.0.21

2 years ago

20.0.22

2 years ago

20.0.20

2 years ago

20.0.19

2 years ago

20.0.14

2 years ago

20.0.16

2 years ago

20.0.15

2 years ago

20.0.18

2 years ago

20.0.17

2 years ago

16.0.9

2 years ago

16.0.8

2 years ago

16.0.16

2 years ago

16.0.10

2 years ago

16.0.11

2 years ago

0.0.7

2 years ago

15.0.6

3 years ago

15.0.5

3 years ago

15.0.4

3 years ago

15.0.3

3 years ago

15.0.2

3 years ago

0.0.1

3 years ago