/** *
( config: OAuthUserConfig
): OAuthConfig
{ return { id: "eventbrite", name: "Eventbrite", type: "oauth", authorization: { url: "https://www.eventbrite.com/oauth/authorize", params: { scope: "user.profile" }, }, token: "https://www.eventbrite.com/oauth/token", userinfo: "https://www.eventbriteapi.com/v3/users/me/", profile(profile) { return { id: profile.id, name: profile.name, email: profile.emails.find((e) => e.primary)?.email, image: profile.image_id ? `https://img.evbuc.com/https%3A%2F%2Fcdn.evbuc.com%2Fimages%2F${profile.image_id}%2F1%2Foriginal.jpg` : null, } }, client: { token_endpoint_auth_method: "client_secret_post", }, style: { bg: "#f05537", text: "#fff" }, options: config, } }