CSFrequency / react-firebase-hooks

React Hooks for Firebase.
Apache License 2.0
3.55k stars 304 forks source link

[auth] add useSignInWithCustomToken hook #304

Open mkhuda opened 1 year ago

mkhuda commented 1 year ago

Some people manage projects with specifications requiring the use of custom secure JWT as the authentication method with Firebase, based on this documentation. Here I intend to add new useSignInWithCustomToken hook to your project.

But before, I thank this library a lot, which helped me in several React Firebase projects.

yamcodes commented 4 months ago

Great job! You'll want to export the hook from auth/index.ts so it is usable from the following import:

import { useSignInWithCustomToken } from "react-firebase-hooks/auth";

Note: I maintain a fork of this library called hooked-on-firebase that incorporates this PR and supports React 18.