summaryrefslogtreecommitdiff
path: root/src/auth.h
blob: e6691ddd9766cd44c1f3664047e40af5bac56738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __AUTH_H
#define __AUTH_H

#include <stdbool.h>

extern char *instance_domain;
extern char *client_id;
extern char *client_secret;
extern char *access_token;
extern char *scope;

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