/** *
( options: OAuthUserConfig
& { /** * @default "https://gitlab.com" */ baseUrl?: URL | string } ): OAuthConfig
{ const baseUrl = options.baseUrl ?? "https://gitlab.com" const url = new URL(baseUrl.toString()) return { id: "gitlab", name: "GitLab", type: "oauth", authorization: `${url}oauth/authorize?scope=read_user`, token: `${url}oauth/token`, userinfo: `${url}api/v4/user`, profile(profile) { return { id: profile.sub?.toString() ?? profile.id?.toString(), name: profile.name ?? profile.username, email: profile.email, image: profile.avatar_url, } }, style: { bg: "#FC6D26", text: "#fff" }, options, } }