Update auth.ts
This commit is contained in:
parent
95bbd60a38
commit
1b13b574f8
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import { z } from "zod";
|
|||
|
||||
export const OAuthMetadataSchema = z.object({
|
||||
authorization_endpoint: z.string(),
|
||||
token_endpoint: z.string()
|
||||
token_endpoint: z.string(),
|
||||
});
|
||||
|
||||
export type OAuthMetadata = z.infer<typeof OAuthMetadataSchema>;
|
||||
|
|
@ -12,7 +12,7 @@ export type OAuthMetadata = z.infer<typeof OAuthMetadataSchema>;
|
|||
export const OAuthTokensSchema = z.object({
|
||||
access_token: z.string(),
|
||||
refresh_token: z.string().optional(),
|
||||
expires_in: z.number().optional()
|
||||
expires_in: z.number().optional(),
|
||||
});
|
||||
|
||||
export type OAuthTokens = z.infer<typeof OAuthTokensSchema>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue