Skip to navigation

C SDK

V3 BETA

What you need

SupportedRecommended
CC99, C11, C17, or C++11 and newer
CompilersAny C99 compiler. Tested with MSVC.The current Visual Studio
WindowsWindows 10 and newer
LibrariesNone on Windows. libcurl and pthreads on Linux and macOS.

The whole SDK is one file, authlyx.h. Copy it into your project. In exactly one .c file, define AUTHLYX_IMPLEMENTATION before including it:

#define AUTHLYX_IMPLEMENTATION
#include "authlyx.h"

Every other file includes authlyx.h without the define. With MSVC the Windows libraries are linked automatically. With other compilers on Windows, link winhttp bcrypt crypt32 advapi32 user32 shell32.

The C guide walks through everything from creating the client to signing out. The example on GitHub is a complete console app with a CMake project.

Verify the download

SHA-256 of authlyx.h:

92842cf5f0e8080cebca71fde8c4cb4ff29361dacf5820b9664720dfebf0446a