UNPKG

@charmr/oauth-button-web

Version:

A lightweight, framework-agnostic OAuth login button as a custom Web Component. Easily drop it into any HTML, React, Angular, or Vue project.

9 lines (8 loc) 257 B
import { providers } from '@charmr/oauth-core'; /** * validates dynamic input as a known provider (e.g. 'google'). * narrows to ProviderType if true... */ export function isProvider(val) { return typeof val === 'string' && providers.includes(val); }