Refactor code and improve error handling in authentication methods

This commit contains several changes including the removal of an unused onClick event handler in remove-member-dialog.tsx. It also includes an update to the POST handler in the Webhook route of the database API where the authentication property has been updated. Lastly, it also brings improvements in error handling and logging in various areas, such as e2e authentication tests and the mailbox utility.
This commit is contained in:
giancarlo
2024-05-03 23:56:23 +07:00
parent e159c52d41
commit 08c86102d8
5 changed files with 62 additions and 45 deletions

View File

@@ -97,9 +97,11 @@ test.describe('Full Invitation Flow', () => {
// sign out and sign in with the first email
await invitations.auth.signOut();
await invitations.auth.visitConfirmEmailLink(invites[0]!.email);
console.log(`Finding email to ${firstEmail} ...`);
console.log(`Signing up with ${firstEmail}`);
await invitations.auth.visitConfirmEmailLink(firstEmail);
console.log(`Signing up with ${firstEmail} ...`);
await invitations.auth.signUp({
email: firstEmail,