Skip to content

AppleID is not defined  #41

@alvesvaren

Description

@alvesvaren

This package has worked fine for ~2 years on our site, but it just now started failing because it tries to access AppleID before it has downloaded the script

Error in console:
image

Our code:

<AppleLogin
    clientId={appleClientId}
    redirectURI={appleRedirectURI}
    scope="name email"
    usePopup={true}
    callback={userInfo => this.responseAppleCallback(userInfo)}
    render={renderProps => (
        <button type="button" onClick={renderProps.onClick} className="provider apple">
            Apple
        </button>
    )}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions