@sylphx/auth 0.1.3 → 0.1.4
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/dist/client.d.ts +16 -0
- package/dist/client.js +16 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -4,6 +4,22 @@ export declare const providers: {
|
|
|
4
4
|
readonly apple: readonly ["Apple", "https://appleid.apple.com/auth/authorize"];
|
|
5
5
|
readonly facebook: readonly ["Facebook", "https://www.facebook.com/v25.0/dialog/oauth"];
|
|
6
6
|
readonly microsoft: readonly ["Microsoft", "https://login.microsoftonline.com/common/oauth2/v2.0/authorize"];
|
|
7
|
+
readonly line: readonly ["LINE", "https://access.line.me/oauth2/v2.1/authorize"];
|
|
8
|
+
readonly kakao: readonly ["Kakao", "https://kauth.kakao.com/oauth/authorize"];
|
|
9
|
+
readonly discord: readonly ["Discord", "https://discord.com/oauth2/authorize"];
|
|
10
|
+
readonly x: readonly ["X", "https://x.com/i/oauth2/authorize"];
|
|
11
|
+
readonly twitch: readonly ["Twitch", "https://id.twitch.tv/oauth2/authorize"];
|
|
12
|
+
readonly linkedin: readonly ["LinkedIn", "https://www.linkedin.com/oauth/v2/authorization"];
|
|
13
|
+
readonly slack: readonly ["Slack", "https://slack.com/openid/connect/authorize"];
|
|
14
|
+
readonly gitlab: readonly ["GitLab", "https://gitlab.com/oauth/authorize"];
|
|
15
|
+
readonly bitbucket: readonly ["Bitbucket", "https://bitbucket.org/site/oauth2/authorize"];
|
|
16
|
+
readonly spotify: readonly ["Spotify", "https://accounts.spotify.com/authorize"];
|
|
17
|
+
readonly tiktok: readonly ["TikTok", "https://www.tiktok.com/v2/auth/authorize/"];
|
|
18
|
+
readonly notion: readonly ["Notion", "https://api.notion.com/v1/oauth/authorize"];
|
|
19
|
+
readonly linear: readonly ["Linear", "https://linear.app/oauth/authorize"];
|
|
20
|
+
readonly atlassian: readonly ["Atlassian", "https://auth.atlassian.com/authorize"];
|
|
21
|
+
readonly huggingface: readonly ["Hugging Face", "https://huggingface.co/oauth/authorize"];
|
|
22
|
+
readonly figma: readonly ["Figma", "https://www.figma.com/oauth"];
|
|
7
23
|
};
|
|
8
24
|
export type Provider = keyof typeof providers;
|
|
9
25
|
export type AuthMethod = 'oauth' | 'password' | 'otp' | 'passkey';
|
package/dist/client.js
CHANGED
|
@@ -4,6 +4,22 @@ export const providers = {
|
|
|
4
4
|
apple: ['Apple', 'https://appleid.apple.com/auth/authorize'],
|
|
5
5
|
facebook: ['Facebook', 'https://www.facebook.com/v25.0/dialog/oauth'],
|
|
6
6
|
microsoft: ['Microsoft', 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize'],
|
|
7
|
+
line: ['LINE', 'https://access.line.me/oauth2/v2.1/authorize'],
|
|
8
|
+
kakao: ['Kakao', 'https://kauth.kakao.com/oauth/authorize'],
|
|
9
|
+
discord: ['Discord', 'https://discord.com/oauth2/authorize'],
|
|
10
|
+
x: ['X', 'https://x.com/i/oauth2/authorize'],
|
|
11
|
+
twitch: ['Twitch', 'https://id.twitch.tv/oauth2/authorize'],
|
|
12
|
+
linkedin: ['LinkedIn', 'https://www.linkedin.com/oauth/v2/authorization'],
|
|
13
|
+
slack: ['Slack', 'https://slack.com/openid/connect/authorize'],
|
|
14
|
+
gitlab: ['GitLab', 'https://gitlab.com/oauth/authorize'],
|
|
15
|
+
bitbucket: ['Bitbucket', 'https://bitbucket.org/site/oauth2/authorize'],
|
|
16
|
+
spotify: ['Spotify', 'https://accounts.spotify.com/authorize'],
|
|
17
|
+
tiktok: ['TikTok', 'https://www.tiktok.com/v2/auth/authorize/'],
|
|
18
|
+
notion: ['Notion', 'https://api.notion.com/v1/oauth/authorize'],
|
|
19
|
+
linear: ['Linear', 'https://linear.app/oauth/authorize'],
|
|
20
|
+
atlassian: ['Atlassian', 'https://auth.atlassian.com/authorize'],
|
|
21
|
+
huggingface: ['Hugging Face', 'https://huggingface.co/oauth/authorize'],
|
|
22
|
+
figma: ['Figma', 'https://www.figma.com/oauth'],
|
|
7
23
|
};
|
|
8
24
|
export function isProvider(id) {
|
|
9
25
|
return typeof id === 'string' && Object.hasOwn(providers, id);
|