Skip to content

Improved detection for expiry auth due to Cloud Session Control - #6771

Merged
joehan merged 4 commits into
masterfrom
jh-better-reauth
Feb 14, 2024
Merged

joehan merged 4 commits into
masterfrom
jh-better-reauth

Conversation

@joehan

@joehan joehan commented Feb 13, 2024

Copy link
Copy Markdown
Member

Description

Improved detection for expiry auth due to Cloud Session Control.

We handle 400 and 401 errors strangely in order to handle (deprecated) auth tokens. This caused us to treat sessions invalidated by Google Cloud Session control as if the user was providing a token. In the next major version, we should get rid of --token, but for now, this seems like a reasonable workaround.

Thanks @IchordeDionysos for the help! Fixes #1846 (at least for some cases)

@joehan
joehan requested a review from bkendall February 13, 2024 21:12
@codecov-commenter

codecov-commenter commented Feb 13, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 54.30%. Comparing base (9cf6921) to head (949c556).
Report is 1134 commits behind head on master.

Files with missing lines Patch % Lines
src/auth.ts 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6771      +/-   ##
==========================================
- Coverage   54.31%   54.30%   -0.02%     
==========================================
  Files         350      350              
  Lines       24296    24301       +5     
  Branches     5028     5029       +1     
==========================================
  Hits        13196    13196              
- Misses       9894     9899       +5     
  Partials     1206     1206              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@joehan
joehan merged commit cca81a9 into master Feb 14, 2024
@joehan
joehan deleted the jh-better-reauth branch February 14, 2024 21:30
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.

Google Cloud Session control

3 participants