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

Reuse Tokens & Misc. Changes #97

Merged
merged 13 commits into from
Apr 10, 2024
Merged

Reuse Tokens & Misc. Changes #97

merged 13 commits into from
Apr 10, 2024

Conversation

cbhernan
Copy link
Collaborator

@cbhernan cbhernan commented Apr 2, 2024

What does this PR do?

The main changes in this PR is the reusing of a token as long as it has not expired.

Minor changes:

  • Renamed Auth0 User API Class to be more descriptive and renamed files.
  • Single quote preference for GCP Cloud Functions enforced by Linter
  • Passing an already instantiated instance of the API to children widgets instead of instantiating a new instance within each child.
  • Decreased timeout duration to 5 seconds
  • Autofocus and Enforce Phone Validation in non-test mode
  • Introduce a variable to determine if running flutter test
  • Dialog return values as ints, instead of type conversion to String
  • Implement full screen dialog on mobile view
  • Change phone number input country code to bottom sheet to prevent loading all flags on widget mount. Also had issues on mobile.
  • Increases the contrast for disabled inputs from 1.2:1 to 4.25:1, recommended contrast is 3:1 to meet accessibility standards

Background info:

We were creating new tokens on every request

Which issue(s) is/are related to this PR?

This PR is/are related to issue(s)

Closes #63

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

Attention: Patch coverage is 81.02190% with 26 lines in your changes are missing coverage. Please review.

Project coverage is 81.14%. Comparing base (dd3437f) to head (4ee5cbe).
Report is 1 commits behind head on development.

Files Patch % Lines
lib/controllers/auth0_user_api_implementation.dart 13.63% 19 Missing ⚠️
lib/views/dialogs/authenticator.dart 92.10% 3 Missing ⚠️
lib/main.dart 33.33% 2 Missing ⚠️
lib/views/dialogs/mobile.dart 89.47% 2 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           development      #97      +/-   ##
===============================================
- Coverage        81.59%   81.14%   -0.46%     
===============================================
  Files               15       15              
  Lines              864      907      +43     
===============================================
+ Hits               705      736      +31     
- Misses             159      171      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cbhernan cbhernan self-assigned this Apr 3, 2024
- Autofocus and Enforce Phone Validation in non-test mode
- Introduce a variable to determine if running flutter test
- Dialog return values as ints, instead of type conversion
- Implement full screen dialog on mobile view
- Change phone number input country code to bottom sheet to prevent
loading all flags on widget mount. Also had issues on mobile.
Increases the contrast for disabled inputs from 1.2:1 to 4.25:1,
recommended contrast is 3:1 to meet accessibility standards
@cbhernan cbhernan changed the title Reuse Tokens Reuse Tokens & Misc. Changes Apr 4, 2024
@cbhernan cbhernan marked this pull request as ready for review April 4, 2024 20:52
@cbhernan cbhernan requested a review from a team as a code owner April 4, 2024 20:52
Copy link

github-actions bot commented Apr 4, 2024

Visit the preview URL for this PR (updated for commit 4ee5cbe):

https://angeleno-my-account-dev-402917--pr97-ghi63-reuse-token-fm8dh8wy.web.app

(expires Thu, 11 Apr 2024 22:28:10 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: ef7f92b444e46d3ebe3d59054b9a245afee849f5

Copy link
Contributor

@nickchaula nickchaula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM approved

@cbhernan cbhernan merged commit ab51b44 into development Apr 10, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reuse Tokens When Possible
2 participants