func CordovaLogin(repo *model.Repo) bool {
	console.Log("CordovaLogin()")
	js.Global.Get("facebookConnectPlugin").Call("login", []string{}, func(response *js.Object) {
		log.Debug("cl success pre goroutine\n")
		go func() {
			provider := "facebook"
			token := response.Get("authResponse").Get("accessToken").String()
			if err := repo.Auth(context.TODO(), provider, token); err != nil {
				displayError(err.Error())
				return
			}
			fmt.Printf("Auth succeeded!\n")
			js.Global.Get("jQuery").Get("mobile").Call("changePage", "index.html")
		}()
	}, func(e *js.Object) {
		log.Printf("Failure logging in: %s", e.Get("errorMessage").String())
	})
	console.Log("Leaving CordovaLogin()")
	return false
}
// CordovaLogin handles login for the Cordova runtime.
CordovaLogin handles login for the Cordova runtime.
// CordovaLogin handles login for the Cordova runtime .
func CordovaLogin(repo *model.Repo) bool {
	console.Log("CordovaLogin()")
	js.Global.Get("facebookConnectPlugin").Call("login", []string{}, func(response *js.Object) {
		log.Debug("cl success pre goroutine\n")
		go func() {
			provider := "facebook"
			token := response.Get("authResponse").Get("accessToken").String()
			if err := repo.Auth(context.TODO(), provider, token); err != nil {
				displayError(err.Error())
				return
			}
			fmt.Printf("Auth succeeded!\n")
			js.Global.Get("jQuery").Get("mobile").Call("changePage", "index.html")
		}()
	}, func(e *js.Object) {
		log.Printf("Failure logging in: %s", e.Get("errorMessage").String())
	})
	console.Log("Leaving CordovaLogin()")
	return false
}
func CordovaLogin ( repo * model . Repo ) bool { console . Log ( " " ) js . Global . Get ( " " ) . Call ( " " , [ ] string { } , func ( response * js . Object ) { log . Debug ( " \n " ) go func ( ) { provider := " " token := response . Get ( " " ) . Get ( " " ) . String ( ) if err := repo . Auth ( context . TODO ( ) , provider , token ) ; err != nil { displayError ( err . Error ( ) ) return } fmt . Printf ( " \n " ) js . Global . Get ( " " ) . Get ( " " ) . Call ( " " , " " ) } ( ) } , func ( e * js . Object ) { log . Printf ( " " , e . Get ( " " ) . String ( ) ) } ) console . Log ( " " ) return false }
CordovaLogin handles login for the Cordova runtime.
CordovaLogin handles login for the Cordova runtime .