feat: auto skip consent screen for trusted oauth clients (#25640)

* auto constent for trusted clients

* add loading state

---------

Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
Carina WollendorferandCarinaWolli authored and GitHub committed 2025-12-17 13:00:12 +00:00
1 parent e0a28af46e
commit 5fe3714edd
4 files changed
+34 -5

No files matched your search

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "public"."OAuthClient" ADD COLUMN "isTrusted" BOOLEAN NOT NULL DEFAULT false;
+1
View File
@@ -1765,6 +1765,7 @@ model OAuthClient {
clientType OAuthClientType @default(CONFIDENTIAL)
name String
logo String?
isTrusted Boolean @default(false)
accessCodes AccessCode[]
}
@@ -18,6 +18,7 @@ export const getClientHandler = async ({ input }: GetClientOptions) => {
redirectUri: true,
name: true,
logo: true,
isTrusted: true,
},
});
return client;