(token string)
| 20 | } |
| 21 | |
| 22 | func newProvider(token string) *provider { |
| 23 | return &provider{ |
| 24 | c: &http.Client{}, |
| 25 | token: token, |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | func ValidateToken(ctx context.Context, token string) error { |
| 30 | return newProvider(token).authTest(ctx) |
no outgoing calls
no test coverage detected