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 loading and error.
Options
Prop
Type