MCPcopy Create free account
hub / github.com/cli/cli / loginRefreshableWithExpiry

Function loginRefreshableWithExpiry

internal/config/refreshable_test.go:860–868  ·  view source on GitHub ↗
(t *testing.T, authCfg *AuthConfig, hostname, username, access, refresh string, expiresAt time.Time, secure bool)

Source from the content-addressed store, hash-verified

858}
859
860func loginRefreshableWithExpiry(t *testing.T, authCfg *AuthConfig, hostname, username, access, refresh string, expiresAt time.Time, secure bool) {
861 t.Helper()
862 _, err := authCfg.LoginRefreshable(hostname, username, gh.Credential{
863 Token: access,
864 RefreshToken: refresh,
865 ExpiresAt: &expiresAt,
866 }, "https", secure)
867 require.NoError(t, err)
868}
869
870func TestActiveTokenWithRefresh(t *testing.T) {
871 host := "github.com"

Callers 2

Calls 2

HelperMethod · 0.65
LoginRefreshableMethod · 0.65

Tested by

no test coverage detected