Skip to content

Commit

Permalink
fix(auth/oauth2adapt): adapt Token Types to be translated
Browse files Browse the repository at this point in the history
  • Loading branch information
codyoss committed Apr 18, 2024
1 parent 62d6ecf commit 1d2ea69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auth/oauth2adapt/oauth2adapt.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func (tp *tokenProviderAdapter) Token(context.Context) (*auth.Token, error) {
}
return &auth.Token{
Value: tok.AccessToken,
Type: tok.Type(),
Expiry: tok.Expiry,
}, nil
}
Expand Down Expand Up @@ -77,6 +78,7 @@ func (ts *tokenSourceAdapter) Token() (*oauth2.Token, error) {
}
return &oauth2.Token{
AccessToken: tok.Value,
TokenType: tok.Type,
Expiry: tok.Expiry,
}, nil
}
Expand Down

0 comments on commit 1d2ea69

Please sign in to comment.