Team based role auth for routes
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
Functions,
|
||||
ID,
|
||||
AppwriteException,
|
||||
Teams,
|
||||
} from 'appwrite';
|
||||
import { useAuthStore } from 'src/stores/auth';
|
||||
import { Dialog, Notify } from 'quasar';
|
||||
@@ -67,6 +68,7 @@ const AppwriteIds = process.env.DEV
|
||||
const account = new Account(client);
|
||||
const databases = new Databases(client);
|
||||
const functions = new Functions(client);
|
||||
const teams = new Teams(client);
|
||||
|
||||
let appRouter: Router;
|
||||
|
||||
@@ -136,6 +138,7 @@ async function login(email: string, password: string) {
|
||||
export {
|
||||
client,
|
||||
account,
|
||||
teams,
|
||||
databases,
|
||||
functions,
|
||||
ID,
|
||||
|
||||
Reference in New Issue
Block a user