GithubHelp home page GithubHelp logo

Ionic 2 about auth0-ionic2 HOT 9 OPEN

auth0 avatar auth0 commented on June 13, 2024
Ionic 2

from auth0-ionic2.

Comments (9)

chenkie avatar chenkie commented on June 13, 2024

Do you have the Lock script coming through ok in your index.html?

<script src="https://cdn.auth0.com/js/lock/10.11/lock.min.js"></script>

from auth0-ionic2.

pookdeveloper avatar pookdeveloper commented on June 13, 2024

Yes i have it.
I follow this instruccions https://auth0.com/docs/quickstart/native/ionic2
Yo can check my example here: https://drive.google.com/file/d/0B-dPjNL8f-MsQ0phenB2NUxBMGc/view?usp=sharing

Thanks!!

from auth0-ionic2.

chenkie avatar chenkie commented on June 13, 2024

Do you have this line in your AuthService?

declare var Auth0Lock: any;

from auth0-ionic2.

pookdeveloper avatar pookdeveloper commented on June 13, 2024

Thankssss its work!

from auth0-ionic2.

pookdeveloper avatar pookdeveloper commented on June 13, 2024

Know i have this error whn i try to login with google , 400. That’s an error.

Error: redirect_uri_mismatch

Request Details
response_type=code
redirect_uri=https://pookdeveloper.eu.auth0.com/login/callback
scope=email profile
state=n8XAkDQWM1L4pCwhBxPOTeHOcmIAf1vk
client_id=147300586785-vp56s99ar7dt6bllim70mabc7dpt879t.apps.googleusercontent.com
That’s all we know.

In your service where you can try it works correctly:

{
"email": "[email protected]",
"email_verified": true,
"name": "pook developer",
"given_name": "pook",
"family_name": "developer",
"picture": "XXXXXXXXXXXXXXXXXXX",
"locale": "es",
"clientID": "XXXXXXXXXXXXXXXXXXX",
"updated_at": "2017-02-26T12:55:52.020Z",
"user_id": "google-oauth2|108928686632243103914",
"nickname": "pookdeveloper",
"identities": [
{
"provider": "google-oauth2",
"user_id": "XXXXXXXXXXXXXXXXXXX",
"connection": "google-oauth2",
"isSocial": true
}
],
"created_at": "2016-04-30T19:58:24.536Z",
"sub": "google-oauth2|XXXXXXXXXXXXXXXXXXX"
}

Thanks

from auth0-ionic2.

chenkie avatar chenkie commented on June 13, 2024

Make sure you've got the following settings added to your Lock options:

auth: {
  sso: false,
  redirect: false
}

Also, make sure you've got this added to your Allowed Callback URLs

https://pookdeveloper.eu.auth0.com/mobile

from auth0-ionic2.

zied90 avatar zied90 commented on June 13, 2024

HomePage.html:13 ERROR TypeError: Cannot read property 'isAvailable' of undefined
at Function.Browser.isAvailable (browser.js:8)

from auth0-ionic2.

zied90 avatar zied90 commented on June 13, 2024

capture d ecran 2017-05-17 a 16 14 48

from auth0-ionic2.

zied90 avatar zied90 commented on June 13, 2024

you know to what is due? thanks

from auth0-ionic2.

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.