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

BLO-838 chore: use endpoint to determine token expiry #1842

Merged
merged 2 commits into from
Mar 7, 2023

Conversation

simonheys
Copy link
Collaborator

Issue / feature description

Can use endpoint to check token expiry (excluding for removal)

Changes

  • change code to use be endpoint to check token expiry

Checklist

  • Rebased to the last commit of the target branch (or merged)
  • Code self-reviewed
  • Code self-tested
  • Tests updated (if needed)
  • All tests are passing locally

@simonheys simonheys marked this pull request as ready for review February 27, 2023 16:45
@github-actions
Copy link

Builds for local testing

@github-actions
Copy link

Builds for local testing

await jwtFetcher(`${ARGENT_API_BASE_URL}/account`)
return false
} catch (error) {
IS_DEV && console.warn(coerceErrorToString(error))
Copy link
Contributor

Choose a reason for hiding this comment

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

I've seen this pattern elsewhere but why collect logs only in dev mode ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The logs can be informative if the service might return unexpected errors as it can here. This has already been useful for debugging with be. Dev only so they don't end up leaking unnecessarily into a prod build.

@simonheys simonheys added the 2fa label Mar 6, 2023
@github-actions
Copy link

github-actions bot commented Mar 6, 2023

Builds for local testing

@github-actions
Copy link

github-actions bot commented Mar 7, 2023

Builds for local testing

@github-actions
Copy link

github-actions bot commented Mar 7, 2023

Builds for local testing

@simonheys simonheys force-pushed the feat/BLO-838-2fa-expiry branch from 21f7f4a to 874ca5b Compare March 7, 2023 12:50
@simonheys simonheys merged commit 2307e98 into develop Mar 7, 2023
@simonheys simonheys deleted the feat/BLO-838-2fa-expiry branch March 7, 2023 12:53
@github-actions
Copy link

github-actions bot commented Mar 7, 2023

Builds for local testing

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
2.3% 2.3% Duplication

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

Successfully merging this pull request may close these issues.

3 participants