{"version":3,"file":"oAuthProviders.mjs","sources":["../../../../../../../../web/src/adminPortal/utils/oAuthProviders.ts"],"sourcesContent":["import { B2BAllowedAuthMethods } from '@stytch/core/public';\n\ntype OAuthMethods = B2BAllowedAuthMethods & `${string}_oauth`;\ntype UnsuffixedOAuthMethods = OAuthMethods extends `${infer TUnsuffixedMethod}_oauth` ? TUnsuffixedMethod : never;\n\nexport const ALL_OAUTH_TENANT_PROVIDERS = ['github', 'hubspot', 'slack'] as const satisfies UnsuffixedOAuthMethods[];\n\nexport type KnownOAuthTenantProvider = (typeof ALL_OAUTH_TENANT_PROVIDERS)[number];\n\nexport const getMethodFromProvider = <T extends KnownOAuthTenantProvider>(provider: T) => `${provider}_oauth` as const;\n"],"names":["ALL_OAUTH_TENANT_PROVIDERS","getMethodFromProvider","provider"],"mappings":"MAKaA,0BAAAA,GAA6B;AAAC,IAAA,QAAA;AAAU,IAAA,SAAA;AAAW,IAAA;;AAIzD,MAAMC,wBAAwB,CAAqCC,QAAAA,GAAgB,GAAGA,QAAAA,CAAS,MAAM;;;;"}