naystack - v1.9.9
    Preparing search index...

    Function getYouTubeAuthorizationURL

    • Builds the Google OAuth authorization URL for a YouTube connection.

      Server-only — reads the non-public YOUTUBE_CLIENT_ID.

      Parameters

      • state: string

        Passed back by Google on the callback; typically the logged-in user's access token.

      • redirectURI: string

        Must match a URI registered on the Google Cloud OAuth client verbatim.

      • scopes: YouTubeScope[] = DEFAULT_SCOPES

        Default: ["https://www.googleapis.com/auth/youtube.readonly"].

      Returns string