@tgauth/react
v1.0.0
Published
React SDK for TGAuth — Telegram authentication
Downloads
23
Maintainers
Readme
@tgauth/react
React SDK for TGAuth — Telegram authentication.
Install
npm install @tgauth/reactUsage
import { TGAuthProvider, TGAuthButton } from '@tgauth/react';
function App() {
return (
<TGAuthProvider projectId="proj_xxx">
<TGAuthButton onSuccess={(user) => console.log(user)} />
</TGAuthProvider>
);
}https://tgauth.dev
