You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A single OAuth scope with its description and whether it requires consent.
27
+
*
28
+
* @interface
27
29
*/
28
30
exporttypeOAuthConsentScope={
31
+
/**
32
+
* The name of the scope, as defined by the OAuth application.
33
+
*/
29
34
scope: string;
35
+
/**
36
+
* The description of the scope, which can be shown to users on the consent screen. This may be `null` if no description is available.
37
+
*/
30
38
description: string|null;
39
+
/**
40
+
* Whether or not this scope requires explicit user consent. If `false`, the scope is considered "safe" and can be granted without showing the consent screen to the user.
41
+
*/
31
42
requiresConsent: boolean;
32
43
};
33
44
34
45
/**
35
-
* OAuth consent screen metadata from `GET /v1/me/oauth/consent/{oauthClientId}`.
36
-
* Includes information needed to populate the consent dialog.
46
+
* An interface representing OAuth consent information, including application details and requested scopes.
47
+
*
48
+
* @interface
37
49
*/
38
50
exporttypeOAuthConsentInfo={
51
+
/**
52
+
* The display name of the OAuth application requesting access.
53
+
*/
39
54
oauthApplicationName: string;
55
+
/**
56
+
* The URL of the OAuth application's logo image.
57
+
*/
40
58
oauthApplicationLogoUrl: string;
59
+
/**
60
+
* The homepage URL of the OAuth application.
61
+
*/
41
62
oauthApplicationUrl: string;
63
+
/**
64
+
* The OAuth `client_id` identifying the application.
65
+
*/
42
66
clientId: string;
67
+
/**
68
+
* The `state` parameter from the original authorize request.
69
+
*/
43
70
state: string;
71
+
/**
72
+
* A list of scopes the application is requesting, with descriptions and consent requirements.
73
+
*/
44
74
scopes: OAuthConsentScope[];
45
75
};
46
76
47
77
exporttypeGetOAuthConsentInfoParams={
48
-
/** OAuth `client_id` from the authorize request. */
78
+
/** The OAuth `client_id` from the authorize request. The hook is disabled when this value is empty or omitted. */
49
79
oauthClientId: string;
50
-
/** Optional space-delimited scope string from the authorize request. */
80
+
/** A space-delimited scope string from the authorize request. */
0 commit comments