mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
clean up
This commit is contained in:
parent
7c53fbe328
commit
168a69baba
@ -7,12 +7,6 @@ import { KnownErrors } from "@stackframe/stack-shared";
|
||||
import { yupNumber, yupObject, yupString } from "@stackframe/stack-shared/dist/schema-fields";
|
||||
import { StackAssertionError } from "@stackframe/stack-shared/dist/utils/errors";
|
||||
|
||||
// Helper function to determine if a port is secure
|
||||
function isSecureEmailPort(port: number | string): boolean {
|
||||
const portNum = typeof port === 'string' ? parseInt(port) : port;
|
||||
return portNum === 465;
|
||||
}
|
||||
|
||||
export const POST = createSmartRouteHandler({
|
||||
metadata: {
|
||||
summary: "Revoke an API key",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user