Code Monkey home page Code Monkey logo

Comments (3)

wtrocki avatar wtrocki commented on July 20, 2024

Hello. Thank you for trying our SDK.
Idea of SDK is to hide complexity of refreshing tokens/checking expiry date etc. When using getUser funtion token will be refreshed:
https://github.com/aerogear/aerogear-ios-sdk/blob/master/modules/auth/AgsAuth.swift#L202

However if there will be use case when refresh token will be needed for end user then we can expose it. It may happen that there is bug and under some circumstances token is not refreshed properly. We will need more info to properly address this concern.

See HeaderProvider for more info.

from aerogear-ios-sdk.

benpallen avatar benpallen commented on July 20, 2024

You check if the access token is expired or not in the CurrentUser method.
So, if the access token is expired, I cannot use the refresh token.
I need to use the refresh token to be able to refresh the access token when the access token is expired. I want to use the refresh token with faceid and touchid to be able to sign in the app without typing username and password and I thought I could use the refresh token to be able to do that.

from aerogear-ios-sdk.

benpallen avatar benpallen commented on July 20, 2024

Sorry, I was using release 2.0.0 and you have made some changes.

from aerogear-ios-sdk.

Related Issues (14)

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.