Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solidexpert/auth

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solidexpert/auth - npm Package Compare versions

Comparing version 15.0.2 to 15.0.3

2

package.json
{
"name": "@solidexpert/auth",
"version": "15.0.2",
"version": "15.0.3",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^13.2.0",

@@ -1,24 +0,68 @@

# Auth
Angular helper to get current country by TimeZone
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
## Code scaffolding
## Versions
Run `ng generate component component-name --project auth` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project auth`.
> Note: Don't forget to add `--project auth` or else it will be added to the default project in your `angular.json` file.
| Angular version | package version |
| --------------- | --------------- |
| 15.x|15.x|
## Build
## Installation
Run `ng build auth` to build the project. The build artifacts will be stored in the `dist/` directory.
```shell
npm install --save @solidexpert/auth
```
## Publishing
After building your library with `ng build auth`, go to the dist folder `cd dist/auth` and run `npm publish`.
## Usage
## Running unit tests
Add `AuthModule` to your list of module imports:
Run `ng test auth` to execute the unit tests via [Karma](https://karma-runner.github.io).
```typescript
import { AuthenticationService, AuthGuard, AuthInterceptor, AuthModule, IAuthenticationService } from '@solidexpert/auth';
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@NgModule({
imports: [
...
AuthModule,
...
],
```
Setup your providers to use Solid Auth
```typescript
providers: [
...,
AuthGuard,
{ provide: IAuthenticationService, useClass: AuthenticationService },
{
provide: 'APP_SITE_FULL_URL',
useValue: environment.sitePath,
},
{
provide : HTTP_INTERCEPTORS,
useClass: AuthInterceptor,
multi : true
},
...
],
```
setup yout callback url url
```typescript
export const appRoutes: Route[] = [
...
{ path: 'callback', component: CallbackAuthComponent }
...
];
```
Done!
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc