func userHasStoredSecretViaConfiguredAccounts(tc *libkb.TestContext, username string) bool { configuredAccounts, err := libkb.GetConfiguredAccounts(tc.G) if err != nil { tc.T.Error(err) return false } for _, configuredAccount := range configuredAccounts { if configuredAccount.Username == username { return configuredAccount.HasStoredSecret } } return false }
func (h *LoginHandler) GetConfiguredAccounts(_ context.Context, sessionID int) ([]keybase1.ConfiguredAccount, error) { return libkb.GetConfiguredAccounts(h.G()) }