Files
bab-app/src/boot/appwrite.ts
2023-11-06 22:55:15 -05:00

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 };