mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix: use expires_in
field for git device refresh (#8411)
This was causing git auth to never refresh after the token became expired after 8hrs.
This commit is contained in:
@ -200,9 +200,7 @@ func TestGitAuthDevice(t *testing.T) {
|
||||
require.Equal(t, "authorization_pending", sdkErr.Detail)
|
||||
|
||||
resp = gitauth.ExchangeDeviceCodeResponse{
|
||||
Token: &oauth2.Token{
|
||||
AccessToken: "hey",
|
||||
},
|
||||
AccessToken: "hey",
|
||||
}
|
||||
|
||||
err = client.GitAuthDeviceExchange(context.Background(), "test", codersdk.GitAuthDeviceExchange{
|
||||
|
Reference in New Issue
Block a user