23 lines
512 B
TypeScript
23 lines
512 B
TypeScript
import { boot } from 'quasar/wrappers';
|
|
import { Client, Account, ID } from 'appwrite';
|
|
|
|
const client = new Client();
|
|
|
|
client
|
|
.setEndpoint('https://cloud.appwrite.io/v1')
|
|
.setProject('653ef6f76baf06d68034');
|
|
|
|
const account = new Account(client);
|
|
|
|
// // TODO: Auto-logout on session deletion / expiry
|
|
// if (user.value) {
|
|
// client.subscribe('account', (response) => {
|
|
// console.log(response);
|
|
// });
|
|
// }
|
|
|
|
// export default boot(({ app, urlPath, redirect }) => {
|
|
// });
|
|
|
|
export { client, account };
|