MCPcopy
hub / github.com/grpc/grpc-go / fetchToken

Function fetchToken

examples/features/authentication/client/main.go:82–86  ·  view source on GitHub ↗

fetchToken simulates a token lookup and omits the details of proper token acquisition. For examples of how to acquire an OAuth2 token, see: https://godoc.org/golang.org/x/oauth2

()

Source from the content-addressed store, hash-verified

80// acquisition. For examples of how to acquire an OAuth2 token, see:
81// https://godoc.org/golang.org/x/oauth2
82func fetchToken() *oauth2.Token {
83 return &oauth2.Token{
84 AccessToken: "some-secret-token",
85 }
86}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected