Giter VIP home page Giter VIP logo

apple-authentication's Introduction

Apple Authentication for React Native


⚠️ THIS REPO IS ARCHIVED, IT IS NOT FUNCTIONAL OR UNDER DEVELOPMENT ⚠️

If you're looking for Apple Sign In for React Native, check out the expo-apple-authentication. This works in both vanilla React Native and managed Expo projects (as do other Expo SDK APIs).


Please note that since this package was never released, the repository may be renamed or deleted in the future.

apple-authentication's People

Contributors

brentvatne avatar matt-oakes avatar vonovak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apple-authentication's Issues

v1 API Discussion

I have gone ahead and created a detailed README for a possible API that we could implement for this library. You can see the details of it here:

https://github.com/react-native-community/apple-sign-in/blob/46aab22632ca482e737f6447a480057648c07710/README.md

All of this is only a suggestion and we should discuss if this API makes sense and open PRs to make changes to it as required.

Reasoning for the proposed API

The goal is to come up with an API that is close to the one provided by Apple, but makes sense in a React context. I have tried to stick to the names that Apple has used and provide access to all of the options which they allow developers to call. We want to make sure our API is as flexible as the iOS one we are wrapping.

Open questions

  • Are we happy with the ways the different parts of the library are exported?
    • There are currently two main exports (SignInWithApple and SignInWithAppleButton) and the types.
  • Does the way we are exporting enums make sense?
    • Are we happy with them being under the relevant main export (SignInWithApple or SignInWithAppleButton) or should they be their own main export (SignInWithAppleButtonType rather than SignInWithAppleButton.Type).

Is there an ETA for the release? :)

Question

Hello, thanks for this! The docs look top.
The iOS13 release is estimated to be on the third week of September and I was wondering if there is an ETA release date for the library.

Thanks for any information and for working on this!

v1 Implementation Discussion

We should use this issue to track how we are planning to implement v1 of the library.

Open questions

  • The structure of the project.
  • Are we using Typescript?
    • I vote yes, if possible.
  • Do we use Swift for the native side?
    • Is this possible and recommended?
    • Will this make it harder for developers to use the library or increase the binary sizes?
    • Do we just stick with ObjectiveC as we know it will work?
  • How to we coordinate implementing?
    • Can we split it into sections that can be worked on in parallel?

Integrate `signinwithapplejs` to add seamless support for Android

Feature Request

Since React Native provides a seamless integration between Android and iOS, this library could also offer that experience. Apple released Sign In with Apple JS
to add support for non apple devices to use the apple-authentication feature.

Why it is needed

If the developer has an app for android and for iOS he need to provide the same authentication methods.

Possible implementation

We could try to load a webview to load the scripts.

<html>
    <head>
        <meta name="appleid-signin-client-id" content="[CLIENT_ID]">
        <meta name="appleid-signin-scope" content="[SCOPES]">
        <meta name="appleid-signin-redirect-uri" content="[REDIRECT_URI]">
        <meta name="appleid-signin-state" content="[STATE]">
    </head>
    <body>
        <div id="appleid-signin" data-color="black" data-border="true" data-type="sign in"></div>
        <script type="text/javascript" src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"></script>
    </body>
</html>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.