Skip to content

Commit

Permalink
add zod schema
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinsj committed Jun 9, 2024
1 parent 1ccdc51 commit be7ceb7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { z } from "zod"

export type PKCEStatus = {
isDone: boolean,
codeVerifier?: string,
Expand All @@ -7,3 +9,9 @@ export type AuthTokens = {
accessToken: string | null,
refreshToken: string | null
}

export const PostTokenSchema = z.object({
access_token: z.string(),
expires_at: z.number(),
refresh_token: z.string(),
})

0 comments on commit be7ceb7

Please sign in to comment.