Skip to content

Commit 8c227f8

Browse files
authored
Merge pull request #2966 from appwrite/feat-add-x-provider
feat: add x oauth provider to console
2 parents f8b015f + f0e08ae commit 8c227f8

File tree

10 files changed

+12
-13
lines changed

10 files changed

+12
-13
lines changed

src/lib/stores/oauth-providers.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ export const oAuthProviders: Record<string, Provider> = {
236236
docs: 'https://developer.wordpress.com/docs/oauth2/',
237237
component: Main
238238
},
239+
x: {
240+
name: 'X',
241+
icon: 'x',
242+
docs: 'https://developer.x.com/en/docs/authentication/oauth-2-0',
243+
component: Main
244+
},
239245
yahoo: {
240246
name: 'Yahoo',
241247
icon: 'yahoo',

src/routes/(console)/project-[region]-[project]/auth/settings/+page.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
import type { PageProps } from './$types';
1717
1818
let { data }: PageProps = $props();
19-
const { project } = data;
19+
/** Must stay derived from `data` so OAuth/auth toggles reflect `invalidate(Dependencies.PROJECT)` without a full reload. */
20+
const project = $derived(data.project);
2021
2122
let showProvider = $state(false);
2223
let selectedProvider: Models.AuthProvider | null = $state(null);

static/icons/dark/color/twitter.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

static/icons/dark/color/x.svg

Lines changed: 1 addition & 0 deletions
Loading

static/icons/dark/grayscale/twitter.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

static/icons/dark/grayscale/x.svg

Lines changed: 1 addition & 0 deletions
Loading

static/icons/light/color/twitter.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

static/icons/light/color/x.svg

Lines changed: 1 addition & 0 deletions
Loading

static/icons/light/grayscale/twitter.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

static/icons/light/grayscale/x.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)