MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / ToBase64String

Function ToBase64String

auth/auth_test.go:1278–1280  ·  view source on GitHub ↗

Encode the given string to base64.

(key string)

Source from the content-addressed store, hash-verified

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

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected