constructAuthToken creates base64(orgID:accessToken) if both are provided
(orgID, accessToken string)
| 87 | |
| 88 | // constructAuthToken creates base64(orgID:accessToken) if both are provided |
| 89 | func constructAuthToken(orgID, accessToken string) string { |
| 90 | if orgID == "" || accessToken == "" { |
| 91 | return "" |
| 92 | } |
| 93 | combined := fmt.Sprintf("%s:%s", orgID, accessToken) |
| 94 | return base64.StdEncoding.EncodeToString([]byte(combined)) |
| 95 | } |
| 96 | |
| 97 | type traceInfo struct { |
| 98 | id string |
no test coverage detected