mirror of
https://github.com/janishutz/MusicPlayerV2.git
synced 2025-11-25 21:14:22 +00:00
plan sdk stubs
This commit is contained in:
11
backend/src/sdk/sdk-stub.ts
Normal file
11
backend/src/sdk/sdk-stub.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import express from 'express';
|
||||
|
||||
// TODO: Use also express-session to make it work with getSessionID and session referencing
|
||||
const checkAuth = ( request: express.Request ) => {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
export default {
|
||||
checkAuth
|
||||
}
|
||||
11
backend/src/sdk/store-sdk-stub.ts
Normal file
11
backend/src/sdk/store-sdk-stub.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
const getSubscriptions = ( uid: string ) => {
|
||||
return [ {
|
||||
'id': 'com.janishutz.MusicPlayer.subscription',
|
||||
'expires': new Date().getTime() + 200000,
|
||||
'status': true
|
||||
} ]
|
||||
}
|
||||
|
||||
export default {
|
||||
getSubscriptions
|
||||
}
|
||||
Reference in New Issue
Block a user