From a1cf625032ecf79b9c0351639242adff13deba35 Mon Sep 17 00:00:00 2001 From: muktanshumishra24 Date: Thu, 19 Sep 2024 10:28:25 +0530 Subject: [PATCH] Chore: Added Telegram Login Support --- README.md | 1 + src/typings.ts | 1 + src/ui/icons.ts | 1 + usage.md | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c04d40d..304defa 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ Auth SDK exposes the standard [Ethereum provider](https://eips.ethereum.org/EIPS - Twitter - Twitch - Apple + - Telegram - Custom IAM diff --git a/src/typings.ts b/src/typings.ts index e6062b8..7d25d29 100644 --- a/src/typings.ts +++ b/src/typings.ts @@ -112,6 +112,7 @@ export type Logins = | 'github' | 'discord' | 'twitch' + | 'telegram' | 'twitter' | 'aws' | 'firebase' diff --git a/src/ui/icons.ts b/src/ui/icons.ts index 741aea8..54470be 100644 --- a/src/ui/icons.ts +++ b/src/ui/icons.ts @@ -9,6 +9,7 @@ const SOCIAL_LOGO: { [k: string]: string } = { github: `${BASE_URL}/github.png`, github_light: `${BASE_URL}/github-light.png`, twitch: `${BASE_URL}/twitch.png`, + telegram: `${BASE_URL}/telegram.png`, discord: `${BASE_URL}/discord.png`, aws: `${BASE_URL}/aws.png`, aws_light: `${BASE_URL}/aws_light.png`, diff --git a/usage.md b/usage.md index 11e22cb..495c641 100644 --- a/usage.md +++ b/usage.md @@ -129,7 +129,7 @@ const provider = await auth.connect() Social login ```js -// loginType - Google, Discord, Twitter, GitHub, Twitch +// loginType - Google, Discord, Twitter, GitHub, Twitch, Apple & Telegram const provider = await auth.loginWithSocial(`${loginType}`) ```