jira.js
    Preparing search index...

    Variable authOAuth2SchemaConst

    authOAuth2Schema: ZodObject<
        {
            accessToken: ZodOptional<ZodString>;
            clientId: ZodOptional<ZodString>;
            clientSecret: ZodOptional<ZodString>;
            cloudId: ZodOptional<ZodString>;
            expiresAt: ZodOptional<ZodNumber>;
            onTokenRefresh: ZodOptional<ZodCustom<OnTokenRefresh, OnTokenRefresh>>;
            refreshToken: ZodOptional<ZodString>;
            siteUrl: ZodOptional<ZodString>;
            type: ZodLiteral<"oauth2">;
        },
        $strip,
    > = ...

    Atlassian OAuth 2.0 (3LO).

    Either hand over an accessToken and manage its lifetime yourself, or hand over the full refresh credential set and let the client refresh on its own. The two refinements below encode exactly that: the second one exists because a partial credential set is always a mistake — it looks configured, then fails on the first refresh.