Giter VIP home page Giter VIP logo

Comments (5)

gregor-srdic avatar gregor-srdic commented on May 28, 2024

What type of login are you using, social or database?
If social, have you tried to clear Safari web site data in the iOs settings, and then to login again?

from auth0-cordova.

saschwarz avatar saschwarz commented on May 28, 2024

Thanks, but I've tried both and cleared Safari web site data in the settings before each attempt and it's still the same error.

from auth0-cordova.

gregor-srdic avatar gregor-srdic commented on May 28, 2024

can you see the actual URL auth0 is trying to redirect you back to?
perhaps you should try to remove the cordova-plugin-customurlscheme plugin and re-add it, with your

ionic plugin remove cordova-plugin-customurlscheme

ionic plugin add cordova-plugin-customurlscheme --variable URL_SCHEME=com.agilitycoursemaster.ACMaster

from auth0-cordova.

saschwarz avatar saschwarz commented on May 28, 2024

Thanks! I'd love to understand what makes a plugin need to be removed/reinstalled...

Now my console.log in the intent handler is being called but the Auth0 screen stays up with the busy spinner. If I click the Done button on the browser window I get the user canceled alert.

I also tried the "nuclear option" and removed/added the ios platform.

from auth0-cordova.

saschwarz avatar saschwarz commented on May 28, 2024

Found the solution! The customurlscheme and the pieces Auth0 uses to create it must all be lower case:

package.json:

        "cordova-plugin-customurlscheme": {
            "URL_SCHEME": "com.agilitycoursemaster.acmaster",
            "ANDROID_SCHEME": " ",
            "ANDROID_HOST": " ",
            "ANDROID_PATHPREFIX": "/"
        }

auth0-variables.ts:

export class Auth0Vars {
    static AUTH0_CLIENT_ID = 'xxxxxxxxxxxxxxxxx';
    static AUTH0_DOMAIN = 'agilitycoursemaster.auth0.com';
    static PACKAGE_IDENTIFIER = 'com.agilitycoursemaster.acmaster';
}

@gregor-srdic thanks for your help!

from auth0-cordova.

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.