Universal JavaScript/TypeScript authentication SDK with multi-backend support, automatic token refresh, and React integration