testera_auth 0.1.0 copy "testera_auth: ^0.1.0" to clipboard
testera_auth: ^0.1.0 copied to clipboard

A Flutter plugin for code-based authentication with Firebase Cloud Functions integration.

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return TesteraAuth(
      // Use local function URL when running in debug mode
      validationUrl:
          'http://127.0.0.1:5001/testera-cc9ab/us-central1/validateCode',
      child: MaterialApp(
        title: 'Testera Auth Example',
        theme: ThemeData(primarySwatch: Colors.blue, useMaterial3: true),
        home: const HomePage(),
      ),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Testera Auth Example')),
      body: const Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text('Welcome to the App!', style: TextStyle(fontSize: 24)),
            SizedBox(height: 16),
            Text(
              'You have successfully authenticated.',
              style: TextStyle(fontSize: 16),
            ),
          ],
        ),
      ),
    );
  }
}
0
likes
150
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for code-based authentication with Firebase Cloud Functions integration.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, shared_preferences

More

Packages that depend on testera_auth

Packages that implement testera_auth