Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added convert value expiresIn to number. #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added convert value expiresIn to number. #132

wants to merge 1 commit into from

Conversation

bartdeveloper
Copy link

@bartdeveloper bartdeveloper commented Dec 4, 2019

In Ionic framework 4 (with Angular 8 and Azure AD as login provider) without convert Number(this.expiresIn) isValid() function often return false (e.g. when expiresIn has value 3600 and buffer has value -600). It occurs only on mobile device (run on Samsung A40, Android 9.0, Chrome 78) with authorization code flow - then Azure AD return unfortunately expiresIn value as string. While testing in web browser on computer (Windows 10, Chrome 78) then is OK, in this case Azure AD return expiresIn value as number.

In Ionic framework (with Angular 8) without convert Number(this.expiresIn) isValid() function often return false (e.g. when expiresIn has value 3600 and buffer has value -600).
@tikurahul
Copy link
Collaborator

I think the better approach might be to deal with this when we deserialize the token response. That way we don’t have to do this every time isValid() is called.

@bartdeveloper
Copy link
Author

Sure, this approach will be more efficiently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants