10.0.2 • Published 3 years ago

ngx-apple-signin v10.0.2

Weekly downloads
29
License
ISC
Repository
github
Last release
3 years ago

Angular8+ Apple Sign In component

An Angular 8+ component for Apple Sign In \o/

NPM Version NPM Version NPM Version Dependencies Badge Dev Dependencies Badge

Contributing

Feel free to open issues and pull requests. If you would like to be one of the core creators of this library, please reach out to me at julien.catania@gmail.com

Component versions matches Angular versions

Please note that the ng8-apple-signin package is now deprecated

Angular versionNPM versionNPM install command
8.x.x8.0.3npm install ngx-apple-signin@8.0.3
9.x.x9.0.0npm install ngx-apple-signin@9.0.0
10.x.x10.0.2npm install ngx-apple-signin@10.0.2

Getting Started

1 - Download the library using npm npm install ngx-apple-signin

2 - Declare the library in your main module

  import {NgModule} from '@angular/core';
  import {BrowserModule} from '@angular/platform-browser';
  import { AppleSigninModule } from 'ngx-apple-signin'

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

3 - Add the Apple JavaScript file in your index.html

  <!doctype html>
  <html lang="en">
  <head>
    <meta charset="utf-8">
    <title>My App</title>
    <base href="/">
  
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script type="text/javascript" src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"></script>
  
  </head>
  <body>
    [...]
  </body>
  </html>

4 - Just call the component

   <apple-signin   [state]="yourStateVar"
                   [redirectURI]="yourRedirectURIVar"
                   [scope]="yourScopeVar"
                   [clientId]="yourClientIdVar"
                   color="light"
                   type="sign up"></apple-signin>

4.1 - This is how Color Enum and Type Enum looks like

enum Color {
 black = 'black',
 light = 'light'
}
enum Type {
 SignIn = 'sign in',
 SignUp = 'sign up',
 Apple = 'apple',
 Continue = 'continue'
}

5 - Enjoy it !


To do list: 1. Change the Apple Javascript import to the project itself (step 3 will be deleted)

10.0.2

3 years ago

10.0.1

3 years ago

10.0.0

4 years ago

9.0.0

4 years ago

8.0.3

4 years ago

8.0.2

4 years ago

8.0.1

4 years ago

8.0.0

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago