From 55821a92a240b5a3fdfcc45a07535a8e143dae6c Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 6 Aug 2019 19:55:04 +0200 Subject: Have the login function return the authToken --- restapi/auth.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'restapi/auth.h') diff --git a/restapi/auth.h b/restapi/auth.h index ce5ea10..0378095 100644 --- a/restapi/auth.h +++ b/restapi/auth.h @@ -1,10 +1,7 @@ #ifndef RESTAPI_AUTH_H_ #define RESTAPI_AUTH_H_ -extern char * userId; -extern char * authToken; - -char // returns 0 if ok, greater than 0 otherwise +const char * // returns authToken if ok, NULL otherwise restapi_login(const char* username, const char* password); void restapi_logout(void); -- cgit v1.2.3