//#region src/plugins/oauth/types.d.ts type OAuthAuthorizeQuery = { /** Where the server redirects the browser after a successful callback. */redirectUri?: string; /** Where the server redirects on a failed callback. Falls back to `redirectUri`. */ errorRedirectUri?: string; }; type SignInOAuthInput = OAuthAuthorizeQuery & { /** Provider id, e.g. `"google"` or `"github"`. */provider: string; /** * When true, skip auto-navigation and only resolve with the authorization * URL — the caller is responsible for navigating the browser. */ disableRedirect?: boolean; }; type LinkOAuthInput = SignInOAuthInput; type OAuthAuthorizeResult = { /** Provider authorization URL. */url: string; /** Whether the SDK navigated to `url`. */ redirect: boolean; }; type OAuthAccount = { provider: string; providerAccountId: string; scopes: string[]; accessTokenExpiresAt?: string; createdAt: string; updatedAt: string; }; type OAuthTokens = { accessToken: string; refreshToken?: string; idToken?: string; accessTokenExpiresAt?: string; scope?: string; }; //#endregion export { LinkOAuthInput, OAuthAccount, OAuthAuthorizeQuery, OAuthAuthorizeResult, OAuthTokens, SignInOAuthInput };