-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
Milestone
Description
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();
},
),
),
),
),
),
);
}
}