Socket
Socket
Sign inDemoInstall

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


Version published
Weekly downloads
7
increased by250%
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

FAQs

Package last updated on 27 Jan 2017

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

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