withAccessToken adds the access token to the context.
(ctx context.Context, token string)
| 99 | |
| 100 | // withAccessToken adds the access token to the context. |
| 101 | func withAccessToken(ctx context.Context, token string) context.Context { |
| 102 | return context.WithValue(ctx, accessTokenKey{}, token) |
| 103 | } |
| 104 | |
| 105 | // getAccessToken retrieves the access token from the context. |
| 106 | func getAccessToken(ctx context.Context) string { |
no outgoing calls