fix build error
All checks were successful
Build Docker Image / run (pull_request) Successful in 1m12s

This commit is contained in:
Clement 2024-04-20 13:57:37 +02:00
parent 19edb3472f
commit ccb31a172d

View File

@ -2,7 +2,7 @@
import Layout from "../../layouts/Layout.astro";
import PocketBase from 'pocketbase';
import AstroUtils from "../../libs/AstroUtils";
import Schema from 'models/Schema'
// import Schema from 'models/Schema'
// const usr = await getUser(Astro.cookies)
@ -17,8 +17,8 @@ const res = await AstroUtils.wrap(async () => {
}
const form = await Astro.request.formData();
const request = {
email: form.get("username") as String,
password: form.get("password") as String
email: form.get("username") as string,
password: form.get("password") as string,
}
const pb = new PocketBase('http://127.0.0.1:3001');
@ -30,7 +30,9 @@ const res = await AstroUtils.wrap(async () => {
// after the above you can also access the auth data from the authStore
console.log(pb.authStore.isValid);
console.log(pb.authStore.token);
if(pb.authStore.model){
console.log(pb.authStore.model.id);
}
})
---