Closed kangmingtay closed 3 weeks ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/api/token_refresh.go | 8 | 13 | 61.54% | ||
<!-- | Total: | 8 | 13 | 61.54% | --> |
Totals | |
---|---|
Change from base Build 11555996021: | -0.02% |
Covered Lines: | 9564 |
Relevant Lines: | 16737 |
we don't need to do the same check here because it's using forUpdate = true
- the intention in this block is to retry accessing the refresh_tokens
or sessions
table after some time because the FOR UPDATE
lock is being held by another transaction so it's acceptable for the session to not be found here
👍
What kind of change does this PR introduce?
auth.sessions
table being created, some refresh tokens can contain a nullsession_id
. In those cases, attempting to use those refresh tokens to obtain a new session will result in a panic.session_id
to prevent panics from happening.What is the current behavior?
Please link any relevant issues here.
What is the new behavior?
Feel free to include screenshots if it includes visual changes.
Additional context
Add any other context or screenshots.