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
Copy file name to clipboardexpand all lines: src/OAuth2User.ts
+10-3
Original file line number
Diff line number
Diff line change
@@ -27,21 +27,31 @@ export type OAuth2Scopes =
27
27
|"bookmark.write";
28
28
29
29
exportinterfaceOAuth2UserOptions{
30
+
/** Can be found in the developer portal under the header "Client ID". */
30
31
client_id: string;
32
+
/** If you have selected an App type that is a confidential client you will be provided with a “Client Secret” under “Client ID” in your App’s keys and tokens section. */
31
33
client_secret?: string;
34
+
/**Your callback URL. This value must correspond to one of the Callback URLs defined in your App’s settings. For OAuth 2.0, you will need to have exact match validation for your callback URL. */
32
35
callback: string;
36
+
/** Scopes allow you to set granular access for your App so that your App only has the permissions that it needs. To learn more about what scopes map to what endpoints, view our {@link https://developer.twitter.com/en/docs/authentication/guides/v2-authentication-mapping authentication mapping guide}. */
33
37
scopes: OAuth2Scopes[];
38
+
/** Overwrite request options for all endpoints */
34
39
request_options?: Partial<RequestOptions>;
35
40
}
36
41
37
42
exporttypeGenerateAuthUrlOptions=
38
43
|{
44
+
/** A random string you provide to verify against CSRF attacks. The length of this string can be up to 500 characters. */
39
45
state: string;
46
+
/** Specifies the method you are using to make a request (S256 OR plain). */
40
47
code_challenge_method: "s256";
41
48
}
42
49
|{
50
+
/** A random string you provide to verify against CSRF attacks. The length of this string can be up to 500 characters. */
43
51
state: string;
52
+
/** A PKCE parameter, a random secret for each request you make. */
44
53
code_challenge: string;
54
+
/** Specifies the method you are using to make a request (S256 OR plain). */
0 commit comments