Skip to content

Commit 4997833

Browse files
author
MStarRobotics
committed
fix: Resolve TypeScript errors in PhoneAuthExample causing CI failure
1 parent 0a2382f commit 4997833

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/auth/PhoneAuthExample.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ export function PhoneAuthExample() {
2525

2626
try {
2727
// Create reCAPTCHA verifier (visible widget for better UX)
28-
const verifier = ensurePhoneRecaptcha('recaptcha-container', 'normal');
28+
// Note: The service helper manages the verifier instance internally
29+
ensurePhoneRecaptcha('recaptcha-container');
2930

3031
setStatus('Requesting SMS code...');
3132

3233
// Request SMS code
33-
const confirmationResult = await signInWithPhone(phoneNumber, verifier);
34+
const confirmationResult = await signInWithPhone(phoneNumber, 'recaptcha-container');
3435

3536
setConfirmation(confirmationResult);
3637
setStatus('SMS code sent! Check your phone.');

0 commit comments

Comments
 (0)