feat: Introduce data manager service with PocketBase authentication and professor dashboard.

This commit is contained in:
Elmar Kresse
2025-11-22 22:46:06 +01:00
parent 5f383f5638
commit f40558646c
7 changed files with 85 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ export const pb = new PocketBase("/");
// Production: https://cal.htwk-leipzig.de/callback
export const login = async () => {
await pb.collection('users').authWithOAuth2({ provider: 'oidc' });
return await pb.collection('users').authWithOAuth2({ provider: 'oidc', scopes: ['openid', 'email', 'profile'] });
}
export const logout = () => {