summaryrefslogtreecommitdiff
path: root/src/auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth.h')
-rw-r--r--src/auth.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/auth.h b/src/auth.h
index e6691dd..bc9c58b 100644
--- a/src/auth.h
+++ b/src/auth.h
@@ -3,15 +3,12 @@
#include <stdbool.h>
-extern char *instance_domain;
-extern char *client_id;
-extern char *client_secret;
-extern char *access_token;
-extern char *scope;
-
+bool is_logged_in();
+const char* get_access_token();
+const char* get_instance_url();
+int read_local_credentials();
int register_app(const char *instance, void (*callback) (bool success));
int login(const char *email, const char *password, void (*callback) (bool success));
-void auth_cleanup();
#endif