Skip to content

WordPressAuthSchema

katanakit-js / WordPressAuthSchema

const WordPressAuthSchema: ZodDiscriminatedUnion<[ZodObject<{
password: ZodString;
type: ZodLiteral<"application-passwords">;
username: ZodString;
}, $strip>, ZodObject<{
token: ZodString;
type: ZodLiteral<"jwt">;
}, $strip>, ZodObject<{
password: ZodString;
type: ZodLiteral<"basic">;
username: ZodString;
}, $strip>, ZodObject<{
cookie: ZodString;
nonce: ZodString;
type: ZodLiteral<"nonce">;
}, $strip>], "type">;

Defined in: schemas/wordpress.schema.ts:6

Authentication methods for WordPress.