Giter Site home page Giter Site logo

credentials.expiresIn empty about auth0.swift HOT 3 CLOSED

auth0 avatar auth0 commented on May 28, 2024
credentials.expiresIn empty

from auth0.swift.

Comments (3)

cocojoe avatar cocojoe commented on May 28, 2024

@mpycio Please show me the login snippet you are using. Thx

btw I wouldn't expect this to work if you are using a non OIDC client.

from auth0.swift.

mpycio avatar mpycio commented on May 28, 2024

Yes, client doesn't have OIDC enabled as it was used with previous versions of Lock/Auth0, I decided to upgrade but enabling OIDC breaks existing app so I guess I'll have to add new client. Code snippet below.

Auth0
            .authentication()
            .login(
                usernameOrEmail: email,
                password: password,
                connection: “Username-Password-Authentication”,
                scope: “offline_access openid email”,
                parameters: [“device”: UIDevice.current.identifierForVendor!.uuidString]
            )
            .start { (result) in
                switch result {
                case .success(let credentials):
                     // here credentials.expiresIn are empty
                case .failure(let error):
                    debugPrint(error)
                    resultHandler(.error(.serverError))
                }
            }

from auth0.swift.

cocojoe avatar cocojoe commented on May 28, 2024

Yes this will not work with Credentials Manager, I would recommend upgrading. You just need to use https://github.com/auth0/Auth0.swift/blob/master/Auth0/Authentication.swift#L126
There is no need to use the device param either for OIDC.

from auth0.swift.

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.