Skip to content

Instantly share code, notes, and snippets.

@dobladov
Last active July 19, 2024 09:20
Show Gist options
  • Select an option

  • Save dobladov/6c6246d4d2078aa51068bbe2a3b9477a to your computer and use it in GitHub Desktop.

Select an option

Save dobladov/6c6246d4d2078aa51068bbe2a3b9477a to your computer and use it in GitHub Desktop.
Import enum as a type containing the values
export * as SSOProvider from "./sso-providers.js";
export type SSOProvider = typeof SSOProvider[keyof typeof SSOProvider];
export const AMAZON = 'amazon';
export const APPLE = 'apple';
export const FACEBOOK = 'facebook';
export const GOOGLE = 'google';
export const GOOGLE_JWT = 'google-jwt';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment