useCustomTokenSignIn
Sign in with a server-minted custom token.
For bridging your own auth system into Firebase. Your server mints the token with the Admin SDK's createCustomToken.
const { signIn } = useCustomTokenSignIn();
const { token } = await fetchCustomTokenFromYourApi();
await signIn(token);Returns
signIn(customToken) resolves to { success: true, user, credential } or a failure result. Also exposes status, isPending, error, and reset.
Options
Prop
Type