Giter VIP home page Giter VIP logo

Comments (12)

mhrst avatar mhrst commented on June 7, 2024 19

I've recently been working on a interop library for Sign in with Apple JS: https://pub.dev/packages/sign_in_with_apple_js
Currently using it in conjunction with this package to provide Apple Sign In on all platforms.

Would a pull-request implementing web support using this interop package be agreeable? Some extra steps I would include:

  • Creating a new package -- sign_in_with_apple_web -- with the interop package as a dependency
  • Copy the interface from sign_in_with_apple
  • Dynamically adding this script tag
<script type="text/javascript" src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"></script>
  • Calling Sign in with Apple JS init and signIn from getAppleIDCredential
  • Change this package to use sign_in_with_apple_web on web platforms

If this sounds good, I'll whip up a PR.

(( couple edits about implementation ))

from dart_packages.

mhrst avatar mhrst commented on June 7, 2024 6

Thanks for your patience while I find the time to get started on this. Finally diving in!

I'll use this thread for any issues I run into, and to share progress. Looking to get it all completed by the end of this month. 👍🏼

from dart_packages.

minusminuszero avatar minusminuszero commented on June 7, 2024 4

Hello! Any update on this yet?

from dart_packages.

HenriBeck avatar HenriBeck commented on June 7, 2024 3

@tapkain Probably not soon. Apple already offers a solution for the web stack, see #90 for a more detailed explanation.

from dart_packages.

bdlukaa avatar bdlukaa commented on June 7, 2024 2

Hello. Would you like to reconsider adding web support to sign_in_with_apple? Flutter web is progressing and it'd be nice to have the option to sign in with apple in it. Firebase auth already supports web and it already recommends your package to sign in with apple in iOS and macOS, but as web is not supported, we need to use other code

Rest api support would also be nice :)

from dart_packages.

tp avatar tp commented on June 7, 2024 1

@mhrst et all: Revisiting this issue, I see how it could and should be much easier to get Sign in with Apple into web project.

If you're still up for it, let's work together and add it to this project so it'll work out of the box :)

from dart_packages.

yevyevyev avatar yevyevyev commented on June 7, 2024

Thanks for the reference, will do that! Offer - would be great to include that info in the readme web section, so that future users won't bloat here the github issues.

from dart_packages.

christophemacabiau avatar christophemacabiau commented on June 7, 2024

Thanks for your work on this package.
I agree with others, tt would be so nice to have web support for this package!

from dart_packages.

mhrst avatar mhrst commented on June 7, 2024

Delayed longer than I estimated -- thanks for everyone's patience 🙇🏽. Now moving along on this:

https://github.com/mhrst/dart_packages/tree/web

First commit refactors the plug-in as a federated plugin. This could make other PRs less easily automatically merged as it moves some code around.

from dart_packages.

tp avatar tp commented on June 7, 2024

@mhrst Have you tackled this further beyond the federated plugin split? (Will check that out in detail and would merge your commit if that's still up to date.)

We'll certainly be implementing web support within the next week, so would be interesting so share any existing work or learnings beforehand. (I'll be starting out to keep it simple and work with "just Flutter" (with a redirect) and avoid the external JS as outlined in #90).

from dart_packages.

tp avatar tp commented on June 7, 2024

Implementation is now underway in #263

from dart_packages.

tp avatar tp commented on June 7, 2024

This has now been published as version 3.3.0. Please check it out and reach out in case of any trouble updating your app :)

from dart_packages.

Related Issues (20)

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.