mirror of https://github.com/grpc/grpc-go.git
add a comment
This commit is contained in:
parent
7f81611b64
commit
c783da2ff9
|
@ -96,6 +96,7 @@ type oauthAccess struct {
|
|||
token oauth2.Token
|
||||
}
|
||||
|
||||
// NewOauthAccess constructs the credentials using a given token.
|
||||
func NewOauthAccess(token *oauth2.Token) credentials.Credentials {
|
||||
return oauthAccess{token: *token}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue