diff --git a/utils/Yup.ts b/utils/Yup.ts index 03cc0b7..eea21c4 100644 --- a/utils/Yup.ts +++ b/utils/Yup.ts @@ -22,8 +22,6 @@ export const ImageOptionsSchema: Yup.SchemaOf = Yup.object({ size: Yup.mixed().oneOf(['128', '256', '512']).required() }) -export const PageCount = Yup.number().integer().positive() - interface ImageOptions { id: string ext: ext @@ -33,5 +31,15 @@ interface ImageOptions { type ext = 'webp' | 'png' | 'gif' type ImageSize = '128' | '256' | '512' +export const PageCount = Yup.number().integer().positive() + +export const OauthCallbackSchema: Yup.SchemaOf = Yup.object({ + code: Yup.string().required() +}) + +interface OauthCallback { + code: string +} + export default Yup \ No newline at end of file