We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71fa51f commit f05ac62Copy full SHA for f05ac62
1 file changed
src/routes/(console)/project-[region]-[project]/auth/updateOAuth.ts
@@ -4,16 +4,16 @@ import { Dependencies } from '$lib/constants';
4
import { isValueOfStringEnum } from '$lib/helpers/types';
5
import { addNotification } from '$lib/stores/notifications';
6
import { sdk } from '$lib/stores/sdk';
7
-import { OAuthProvider } from '@appwrite.io/console';
+import { OAuthProvider, type Models } from '@appwrite.io/console';
8
9
-export type AuthProvider = {
10
- $id: string;
+type ProjectOAuthProvider = Models.OAuth2ProviderList['providers'][number];
+
11
+export type AuthProvider = ProjectOAuthProvider & {
12
key: string;
13
name: string;
14
appId: string;
15
secret: string;
- enabled: boolean;
16
-} & Record<string, unknown>;
+};
17
18
type Args = {
19
region: string;
0 commit comments