File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -530,13 +530,13 @@ func TestAPIKey(t *testing.T) {
530
530
)
531
531
r .Header .Set (codersdk .SessionTokenHeader , token )
532
532
533
- // Include a valid oauth token for refreshing. If this token is invalid,
534
- // it is difficult to tell an auth failure from a expired api key, or
535
- // an expired oauth key.
536
- oauthToken := & oauth2.Token {
537
- AccessToken : "wow" ,
538
- RefreshToken : "moo" ,
539
- Expiry : dbtime .Now ().AddDate (0 , 0 , 1 ),
533
+ // Include a valid oauth token for refreshing. If this token is invalid,
534
+ // it is difficult to tell an auth failure from an expired api key, or
535
+ // an expired oauth key.
536
+ oauthToken := & oauth2.Token {
537
+ AccessToken : "wow" ,
538
+ RefreshToken : "moo" ,
539
+ Expiry : dbtime .Now ().AddDate (0 , 0 , 1 ),
540
540
}
541
541
httpmw .ExtractAPIKeyMW (httpmw.ExtractAPIKeyConfig {
542
542
DB : db ,
You can’t perform that action at this time.
0 commit comments