Socket
Socket
Sign inDemoInstall

@solidexpert/auth

Package Overview
Dependencies
6
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @solidexpert/auth

Angular helper to get current country by TimeZone


Version published
Maintainers
2
Created

Readme

Source

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!

FAQs

Last updated on 15 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc