feat: set up backend

This commit is contained in:
2026-09-04 14:57:40 +02:00
parent c123673ca5
commit 4d4ddfe255
10 changed files with 182 additions and 16 deletions
+14
View File
@@ -0,0 +1,14 @@
import loginSdk from '@janishutz/login-sdk-server';
import loginSdkStub from '@janishutz/login-sdk-server-stubs';
import storeSdk from '@janishutz/store-sdk';
import storeSdkStub from './store-sdk-stub';
export const getLoginSdk = ( foss: boolean ) => {
if ( foss ) return loginSdkStub;
else return loginSdk;
};
export const getStoreSdk = ( foss: boolean ) => {
if ( foss ) return storeSdkStub;
else return storeSdk;
};
+11 -1
View File
@@ -1,3 +1,10 @@
interface StoreSDKConfig {
'backendURL': string;
'signingSecret': string;
'name': string;
'loglevel': 'debug' | 'info' | 'log' | 'warn' | 'error' | 'none';
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const getSubscriptions = ( _uid: string ) => {
return [ {
@@ -7,6 +14,9 @@ const getSubscriptions = ( _uid: string ) => {
} ];
};
const configure = ( _config: StoreSDKConfig ) => {}
export default {
getSubscriptions
getSubscriptions,
configure
};