New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-amazon-login

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-amazon-login

Login with Amazon component for Angular written in TypeScript

0.1.3
Source
npm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

angular-amazon-login npm version

Amazon Login component for Angular written in TypeScript.

Usage

Add this script tag below in the head tag of index.html:

<script async src="https://api-cdn.amazon.com/sdk/login1.js"></script>

Import and add AmazonLoginComponent from this package to your Angular module:

import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';

import {AppComponent} from './app.component';
import {AmazonLoginComponent} from 'angular-amazon-login';

@NgModule({
  imports: [
    BrowserModule
  ],
  declarations: [
    AppComponent,
    AmazonLoginComponent
  ],
  bootstrap: [AppComponent]
})
export class AppModule {
}

Example of a component that is using this package:

import {Component} from '@angular/core';
import {AmazonAuthResponse} from 'angular-amazon-login';

@Component({
  selector: 'my-app',
  templateUrl: 'app.component.html'
})
export class AppComponent {
  constructor() {
  }

  private myClientId: string = 'your-client-id-here';

  onAmazonAuthResponse(event: AmazonAuthResponse) {
    // your code here
  }
}

In a component template, put <amazon-login> with attributes of render options and init params. clientId attribute is required.

<amazon-login
  [clientId]="myClientId"
  (amazonAuthResponse)="onAmazonAuthResponse($event)">
</amazon-login>

For more information about Login With Amazon SDK, see http://login.amazon.com/documentation

Features and bugs

Please file feature requests and bugs at the issue tracker.

Keywords

amazon

FAQs

Package last updated on 28 Sep 2016

Did you know?

Socket

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