diff --git a/MusicPlayerV2-GUI/src/stores/userStore.ts b/MusicPlayerV2-GUI/src/stores/userStore.ts index 3471e34..0954b73 100644 --- a/MusicPlayerV2-GUI/src/stores/userStore.ts +++ b/MusicPlayerV2-GUI/src/stores/userStore.ts @@ -9,8 +9,10 @@ import { defineStore } from 'pinia'; + +// FOSS-VERSION: To enable the UI to be used with the FOSS version, change "isUserAuth" to true, you will be "logged in" export const useUserStore = defineStore( 'user', { - state: () => ( { 'isUserAuth': false, 'hasSubscribed': false, 'isUsingKeyboard': false, 'username': '', 'isFOSSVersion': false } ), + state: () => ( { 'isUserAuth': true, 'hasSubscribed': false, 'isUsingKeyboard': false, 'username': '', 'isFOSSVersion': false } ), getters: { getUserAuthenticated: ( state ) => state.isUserAuth, getSubscriptionStatus: ( state ) => state.hasSubscribed, diff --git a/backend/src/sdk/sdk-stub.ts b/backend/src/sdk/sdk-stub.ts index 695c6f3..32d7c75 100644 --- a/backend/src/sdk/sdk-stub.ts +++ b/backend/src/sdk/sdk-stub.ts @@ -26,14 +26,6 @@ declare module 'express-session' { } } -const routes = ( app: express.Application, - check_user: ( uid: string ) => Promise, - save_user: ( uid: string, email: string, username: string ) => Promise, - conf?: AuthSDKConfig -): undefined => { - -} - const getUserData = ( request: express.Request ) => { if ( !request.session.uid ) { request.session.uid = crypto.randomUUID(); @@ -45,6 +37,5 @@ const getUserData = ( request: express.Request ) => { export default { checkAuth, - routes, getUserData } \ No newline at end of file diff --git a/backend/src/sdk/store-sdk-stub.ts b/backend/src/sdk/store-sdk-stub.ts index 87d4986..85bcc57 100644 --- a/backend/src/sdk/store-sdk-stub.ts +++ b/backend/src/sdk/store-sdk-stub.ts @@ -6,11 +6,6 @@ const getSubscriptions = ( uid: string ) => { } ]; } -const configure = ( config: object ) => { - -} - export default { getSubscriptions, - configure } \ No newline at end of file