feat: setup workspaces members

This commit is contained in:
Henry
2024-03-04 08:11:50 +00:00
parent 855b8af7db
commit 3bf97694ad
28 changed files with 1185 additions and 30 deletions

View File

@@ -63,7 +63,7 @@ export const {
options: {},
async sendVerificationRequest({ identifier: email, url }) {
const magicLinkEmail = MagicLinkEmail({ loginUrl: url });
await fetch(process.env.EMAIL_URL ?? '', {
const response = await fetch(process.env.EMAIL_URL ?? '', {
method: "POST",
headers: {
'Content-Type': 'application/json',
@@ -77,10 +77,9 @@ export const {
}),
})
// if (!response.ok) {
// const { errors } = await response.json()
// throw new Error(JSON.stringify(errors))
// }
if (response.status !== 200) {
throw new Error('Error sending magic login')
}
},
}
],