initAuth function
void
initAuth()
Implementation
void initAuth() {
ensureLibraryLoaded();
if (!hasFirebase) {
throw StateError(
'this build has no Firebase SDK — configure with FDB_WITH_FIREBASE=ON '
'and an SDK on CMAKE_PREFIX_PATH (or an emb augment)',
);
}
final rc = fdbAuthInit();
if (rc != 0) {
throw StateError(
rc == -1
? 'auth init before app init — call initDatabase first'
: 'Auth::GetAuth failed: $rc',
);
}
}