Encode the given string to base64.
(key string)
| 1276 | |
| 1277 | // Encode the given string to base64. |
| 1278 | func ToBase64String(key string) string { |
| 1279 | return base64.StdEncoding.EncodeToString([]byte(key)) |
| 1280 | } |
| 1281 | |
| 1282 | func TestAuthenticateUntrustedJWT(t *testing.T) { |
| 1283 | ctx := base.TestCtx(t) |
no outgoing calls
no test coverage detected