Merge pull request #2966 from appwrite/feat-add-x-provider

feat: add x oauth provider to console
This commit is contained in:
Harsh Mahajan
2026-04-08 23:07:20 +05:30
committed by GitHub
10 changed files with 12 additions and 13 deletions
+6
View File
@@ -236,6 +236,12 @@ export const oAuthProviders: Record<string, Provider> = {
docs: 'https://developer.wordpress.com/docs/oauth2/',
component: Main
},
x: {
name: 'X',
icon: 'x',
docs: 'https://developer.x.com/en/docs/authentication/oauth-2-0',
component: Main
},
yahoo: {
name: 'Yahoo',
icon: 'yahoo',
@@ -16,7 +16,8 @@
import type { PageProps } from './$types';
let { data }: PageProps = $props();
const { project } = data;
/** Must stay derived from `data` so OAuth/auth toggles reflect `invalidate(Dependencies.PROJECT)` without a full reload. */
const project = $derived(data.project);
let showProvider = $state(false);
let selectedProvider: Models.AuthProvider | null = $state(null);
-3
View File
@@ -1,3 +0,0 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8.27767 20C5.96696 20 3.81298 19.3455 2 18.2161C3.53928 18.3131 6.25576 18.0808 7.94541 16.5112C5.40363 16.3976 4.25733 14.499 4.10781 13.6876C4.32378 13.7688 5.35379 13.8661 5.93524 13.6389C3.01136 12.9249 2.56281 10.426 2.66248 9.66329C3.21071 10.0365 4.14104 10.1663 4.50652 10.1339C1.78199 8.23529 2.76216 5.37931 3.24394 4.76268C5.19916 7.40081 8.12943 8.88248 11.7546 8.9649C11.6862 8.67294 11.6501 8.36899 11.6501 8.0568C11.6501 5.81629 13.5096 4 15.8034 4C17.0018 4 18.0817 4.49583 18.8398 5.28893C19.6406 5.10616 20.8459 4.67831 21.4352 4.30832C21.1382 5.34686 20.2135 6.21321 19.6542 6.53431C19.6589 6.54524 19.6497 6.52334 19.6542 6.53431C20.1455 6.46194 21.4748 6.21313 22 5.86613C21.7403 6.44957 20.76 7.41964 19.9555 7.96273C20.1052 14.3917 15.0546 20 8.27767 20Z" fill="#47ACDF"/>
</svg>

Before

Width:  |  Height:  |  Size: 909 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" viewBox="0 0 20 20"><path fill="#F7F8F8" d="M14.074 3.597h2.172L11.5 9.022l5.583 7.38h-4.371l-3.424-4.476-3.918 4.477H3.196L8.273 10.6 2.917 3.597h4.482l3.095 4.092zm-.763 11.505h1.204L6.745 4.83H5.453z"/></svg>

After

Width:  |  Height:  |  Size: 287 B

-3
View File
@@ -1,3 +0,0 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8.2918 20C15.8371 20 19.9652 13.8437 19.9652 8.50658C19.9652 8.33351 19.9613 8.15659 19.9535 7.98352C20.7566 7.41173 21.4496 6.70348 22 5.89206C21.2521 6.21968 20.458 6.43365 19.6449 6.52665C20.5011 6.02137 21.1421 5.22761 21.4492 4.2925C20.6438 4.76247 19.763 5.09399 18.8445 5.27285C18.2257 4.62545 17.4075 4.19679 16.5164 4.05315C15.6253 3.90952 14.711 4.0589 13.9148 4.4782C13.1186 4.89751 12.4848 5.56338 12.1115 6.37287C11.7382 7.18236 11.6462 8.09039 11.8496 8.95656C10.2187 8.87598 8.62328 8.45886 7.16665 7.73224C5.71002 7.00561 4.42474 5.98571 3.39414 4.73864C2.87033 5.62782 2.71005 6.68001 2.94586 7.68136C3.18167 8.68271 3.79589 9.5581 4.66367 10.1296C4.01219 10.1092 3.37498 9.93653 2.80469 9.62577V9.67576C2.8041 10.6089 3.13175 11.5134 3.73192 12.2356C4.3321 12.9578 5.16777 13.453 6.09687 13.6372C5.49338 13.7997 4.85999 13.8234 4.2457 13.7064C4.50788 14.5089 5.01798 15.2108 5.70481 15.7141C6.39164 16.2174 7.22093 16.497 8.07695 16.514C6.62369 17.6379 4.82848 18.2476 2.98047 18.2447C2.65274 18.2442 2.32533 18.2244 2 18.1855C3.87738 19.3713 6.06128 20.0011 8.2918 20Z" fill="#C4C6D7"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" viewBox="0 0 20 20"><path fill="#C4C6D7" d="M14.074 3.597h2.172L11.5 9.022l5.583 7.38h-4.371l-3.424-4.476-3.918 4.477H3.196L8.273 10.6 2.917 3.597h4.482l3.095 4.092zm-.763 11.505h1.204L6.745 4.83H5.453z"/></svg>

After

Width:  |  Height:  |  Size: 287 B

-3
View File
@@ -1,3 +0,0 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8.27767 20C5.96696 20 3.81298 19.3455 2 18.2161C3.53928 18.3131 6.25576 18.0808 7.94541 16.5112C5.40363 16.3976 4.25733 14.499 4.10781 13.6876C4.32378 13.7688 5.35379 13.8661 5.93524 13.6389C3.01136 12.9249 2.56281 10.426 2.66248 9.66329C3.21071 10.0365 4.14104 10.1663 4.50652 10.1339C1.78199 8.23529 2.76216 5.37931 3.24394 4.76268C5.19916 7.40081 8.12943 8.88248 11.7546 8.9649C11.6862 8.67294 11.6501 8.36899 11.6501 8.0568C11.6501 5.81629 13.5096 4 15.8034 4C17.0018 4 18.0817 4.49583 18.8398 5.28893C19.6406 5.10616 20.8459 4.67831 21.4352 4.30832C21.1382 5.34686 20.2135 6.21321 19.6542 6.53431C19.6589 6.54524 19.6497 6.52334 19.6542 6.53431C20.1455 6.46194 21.4748 6.21313 22 5.86613C21.7403 6.44957 20.76 7.41964 19.9555 7.96273C20.1052 14.3917 15.0546 20 8.27767 20Z" fill="#47ACDF"/>
</svg>

Before

Width:  |  Height:  |  Size: 909 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" viewBox="0 0 20 20"><path fill="#0F1419" d="M14.074 3.597h2.172L11.5 9.022l5.583 7.38h-4.371l-3.424-4.476-3.918 4.477H3.196L8.273 10.6 2.917 3.597h4.482l3.095 4.092zm-.763 11.505h1.204L6.745 4.83H5.453z"/></svg>

After

Width:  |  Height:  |  Size: 287 B

-3
View File
@@ -1,3 +0,0 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8.2918 20C15.8371 20 19.9652 13.8437 19.9652 8.50658C19.9652 8.33351 19.9613 8.15659 19.9535 7.98352C20.7566 7.41173 21.4496 6.70348 22 5.89206C21.2521 6.21968 20.458 6.43365 19.6449 6.52665C20.5011 6.02137 21.1421 5.22761 21.4492 4.2925C20.6438 4.76247 19.763 5.09399 18.8445 5.27285C18.2257 4.62545 17.4075 4.19679 16.5164 4.05315C15.6253 3.90952 14.711 4.0589 13.9148 4.4782C13.1186 4.89751 12.4848 5.56338 12.1115 6.37287C11.7382 7.18236 11.6462 8.09039 11.8496 8.95656C10.2187 8.87598 8.62328 8.45886 7.16665 7.73224C5.71002 7.00561 4.42474 5.98571 3.39414 4.73864C2.87033 5.62782 2.71005 6.68001 2.94586 7.68136C3.18167 8.68271 3.79589 9.5581 4.66367 10.1296C4.01219 10.1092 3.37498 9.93653 2.80469 9.62577V9.67576C2.8041 10.6089 3.13175 11.5134 3.73192 12.2356C4.3321 12.9578 5.16777 13.453 6.09687 13.6372C5.49338 13.7997 4.85999 13.8234 4.2457 13.7064C4.50788 14.5089 5.01798 15.2108 5.70481 15.7141C6.39164 16.2174 7.22093 16.497 8.07695 16.514C6.62369 17.6379 4.82848 18.2476 2.98047 18.2447C2.65274 18.2442 2.32533 18.2244 2 18.1855C3.87738 19.3713 6.06128 20.0011 8.2918 20Z" fill="#373B4D"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" viewBox="0 0 20 20"><path fill="#373B4D" d="M14.074 3.597h2.172L11.5 9.022l5.583 7.38h-4.371l-3.424-4.476-3.918 4.477H3.196L8.273 10.6 2.917 3.597h4.482l3.095 4.092zm-.763 11.505h1.204L6.745 4.83H5.453z"/></svg>

After

Width:  |  Height:  |  Size: 287 B