fix(auth): improve oauth flow, fix invite flow (with google), add copy invite link
This commit is contained in:
15
apps/api/src/utils/errors.ts
Normal file
15
apps/api/src/utils/errors.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export class LogError extends Error {
|
||||
public readonly payload?: Record<string, unknown>;
|
||||
|
||||
constructor(
|
||||
message: string,
|
||||
payload?: Record<string, unknown>,
|
||||
options?: ErrorOptions,
|
||||
) {
|
||||
super(message, options);
|
||||
this.name = 'LogError';
|
||||
this.payload = payload;
|
||||
|
||||
Object.setPrototypeOf(this, new.target.prototype);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user