appwrite / sdk-for-web

[READ-ONLY] Official Appwrite Web SDK 🧑

Home Page:https://appwrite.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸš€ Enhancement: Custom type for OAuth2Provider instead of string

probablyArth opened this issue Β· comments

commented

πŸ”– Feature description

image
Custom type for OAuth2Provider instead of string like the one used here in appwrite-react
https://github.com/sanny-io/react-appwrite/blob/main/src/account/types.ts

export type OAuth2Provider =
  | 'amazon'
  | 'apple'
  | 'auth0'
  | 'authentik'
  | 'autodesk'
  | 'bitbucket'
  | 'bitly'
  | 'box'
  | 'dailymotion'
  | 'discord'
  | 'disqus'
  | 'dropbox'
  | 'etsy'
  | 'facebook'
  | 'github'
  | 'gitlab'
  | 'google'
  | 'linkedin'
  | 'microsoft'
  | 'notion'
  | 'okta'
  | 'paypal'
  | 'paypalSandbox'
  | 'podio'
  | 'salesforce'
  | 'slack'
  | 'spotify'
  | 'stripe'
  | 'tradeshift'
  | 'tradeshiftBox'
  | 'twitch'
  | 'wordpress'
  | 'yahoo'
  | 'yammer'
  | 'yandex'
  | 'zoom'

🎀 Pitch

It can provide better developer experience.

πŸ‘€ Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏒 Have you read the Code of Conduct?

Hi, thank you for the suggestion.
This might be a bit difficult since we use the SDK generator for everything. However, your idea is appreciated and I will keep this issue open for now in case there are others from the community interested in discussing this.

@probablyArth this looks like a duplicate of appwrite/appwrite#426. Can we close this and you can πŸ‘ the other issue?