mirror of
https://github.com/coder/coder.git
synced 2026-06-03 21:18:24 +00:00
4926410146
External auth refresh errors lose the original error thrown on the first refresh. This PR saves that error to the database to be raised on subsequent refresh attempts
8 lines
302 B
SQL
8 lines
302 B
SQL
ALTER TABLE external_auth_links
|
|
ADD COLUMN oauth_refresh_failure_reason TEXT NOT NULL DEFAULT ''
|
|
;
|
|
|
|
COMMENT ON COLUMN external_auth_links.oauth_refresh_failure_reason IS
|
|
'This error means the refresh token is invalid. Cached so we can avoid calling the external provider again for the same error.'
|
|
;
|