@logto/connector-github 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/constant.d.ts +6 -1
- package/lib/index.js +617 -676
- package/lib/types.d.ts +20 -0
- package/package.json +26 -2
package/lib/constant.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { ConnectorMetadata } from '@logto/connector-kit';
|
|
2
2
|
export declare const authorizationEndpoint = "https://github.com/login/oauth/authorize";
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* `read:user` read user profile data; `user:email` read user email addresses (including private email addresses).
|
|
5
|
+
* Ref: https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps
|
|
6
|
+
*/
|
|
7
|
+
export declare const scope = "read:user user:email";
|
|
4
8
|
export declare const accessTokenEndpoint = "https://github.com/login/oauth/access_token";
|
|
5
9
|
export declare const userInfoEndpoint = "https://api.github.com/user";
|
|
10
|
+
export declare const userEmailsEndpoint = "https://api.github.com/user/emails";
|
|
6
11
|
export declare const defaultMetadata: ConnectorMetadata;
|
|
7
12
|
export declare const defaultTimeout = 5000;
|