mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
refactor: eslint and prettier conflict will be resolved and formatted
This commit is contained in:
@@ -83,7 +83,10 @@ export async function POST(request: NextRequest, { params }: RouteParams) {
|
||||
const tokenForAttempt = shareTokenFromBody || pendingToken;
|
||||
|
||||
if (!tokenForAttempt) {
|
||||
return NextResponse.json({ error: 'Share session expired. Open the share link again.' }, { status: 401 });
|
||||
return NextResponse.json(
|
||||
{ error: 'Share session expired. Open the share link again.' },
|
||||
{ status: 401 }
|
||||
);
|
||||
}
|
||||
|
||||
// Additional throttle bound to token+IP to reduce password guessing against one link.
|
||||
|
||||
Reference in New Issue
Block a user