No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Capacitor mobile app integration

    Framework
    2
    4
    409
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      FloatingPoint last edited by

      I created a PWA with Auth0 integration. Now I’m creating a Capacitor-based mobile application from the PWA, but Auth0 fails with a “auth0-spa-js must run on a secure origin” error. Although I see Auth0 documentation for Cordova integration, I don’t see anything for Capacitor…and what little community support I see takes the form of Ionic or direct API calls. There are one or two poorly supported NPM packages out in the wild that appear to bridge this gap, but they don’t look particularly promising.

      Can anyone assist? Many thanks.

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @FloatingPoint last edited by dobbel

        @FloatingPoint

        Auth0 fails with a “auth0-spa-js must run on a secure origin” error.

        does it fail in dev mode or prod?

        F 1 Reply Last reply Reply Quote 0
        • F
          FloatingPoint @dobbel last edited by

          @dobbel It fails in dev mode. I haven’t checked production mode, but I will and report my results.

          dobbel 1 Reply Last reply Reply Quote 0
          • dobbel
            dobbel @FloatingPoint last edited by

            @FloatingPoint

            auth0-spa-js must run on a secure origin

            I think this specific library does not support Capacitor (SPA only).

            maybe this will help?
            https://github.com/moberwasserlechner/capacitor-oauth2
            https://ionic.io/docs/auth-connect
            https://devdactic.com/capacitor-google-sign-in/
            https://github.com/AyogoHealth/cordova-plugin-oauth

            1 Reply Last reply Reply Quote 0
            • First post
              Last post