Skip to content

Phone login not working #304

@Karjan1

Description

@Karjan1
flutter_clerk.mp4

Steps to reproduce

When trying to login with phone number it fails.
Login with email on flutter works.
Login with phone on Nextjs works.
Tested with clerk_flutter: ^0.0.12-beta and clerk_auth: ^0.0.12-beta

There are no logs in console.

Tested with minimal code:

import 'package:flutter/material.dart';
import 'package:clerk_flutter/clerk_flutter.dart';

void main() {
  runApp(const ExampleApp(publishableKey: '<redacted>>',));
}

/// Example App
class ExampleApp extends StatelessWidget {
  /// Constructs an instance of Example App
  const ExampleApp({super.key, required this.publishableKey});

  /// Publishable Key
  final String publishableKey;

  @override
  Widget build(BuildContext context) {
    return ClerkAuth(
      config: ClerkAuthConfig(publishableKey: publishableKey),
      child: MaterialApp(
        theme: ThemeData.light(),
        debugShowCheckedModeBanner: false,
        home: Scaffold(
          body: SafeArea(
            child: ClerkErrorListener(
              child: ClerkAuthBuilder(
                signedInBuilder: (context, authState) {
                  return const ClerkUserButton();
                },
                signedOutBuilder: (context, authState) {
                  return const ClerkAuthentication();
                },
              ),
            ),
          ),
        ),
      ),
    );
  }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingclerk_authpackage: clerk_auth

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions