npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@jungsoft/react-apple-login

v1.0.13

Published

A Apple Log-in Component for React that supports custom rendering

Downloads

9

Readme

react-apple-login

An Apple Log-in Component for React

NPM JavaScript Style Guide

See react-apple-login for live demo.

Install

npm install --save react-apple-login

Usage

import * as React from 'react'

import AppleLogin from 'react-apple-login'

class Example extends React.Component {
  render () {
    return (
      <AppleLogin clientId="com.react.apple.login" redirectURI="https://redirectUrl.com" />
    )
  }
}

Login Props

| params | value | default value | description | |:------------:|:--------:|:------------------------------------:|:----------------:| | clientId | string | REQUIRED | The developer’s client identifier, as provided by WWDR. | | scope | string | - | The amount of user information requested from Apple. Valid values are name and email. You can request one, both, or none. | | redirectURI | string | REQUIRED | The URI to which the authorization redirects. | | responseType | string | code | The type of response requested. Valid values are code and id_token. You can request one or both. When requesting an id_token response type, response_mode must be either fragment or form_post. | | responseMode | string | query | The type of response mode expected. Valid values are query, fragment, and form_post. If you requested any scopes, the value must be form_post. | | state | string | - | The current state of the request. | | autoLoad | boolean | false | - | | nonce | string | - | A String value used to associate a client session with an ID token. This value is also used to mitigate replay attacks. | | designProp.height | number | 30 | The height of the button image. The minimum and maximum values are 30 and 64, respectively | | designProp.width | number | 140 | The width of the button image. The minimum and maximum values are 130 and 375, respectively. | | designProp.color | string | black | The background color for the button image. The possible values are white and black (the default). | | designProp.border | boolean | false | A Boolean value that determines whether the button image has a border. | | designProp.type | string | sign-in | The type of button image returned. The possible values are sign-in (the default) and continue. | | designProp.border_radius | number | 15 | The corner radius for the button image. The minimum and maximum values are 0 and 50, respectively. | | designProp.scale | number | 1 | The scale of the button image. The minimum and maximum values are 1 and 6, respectively. | | designProp.locale | string | en_US | The language used for text on the button. | | render | function | - | Render prop to use a custom element, use renderProps.onClick | | callback | function | - | callback only work with Response Mode query. |

Production Bundle

npm run prepare

License

MIT © Mayank Patel