vasabase_flutter 0.1.0
vasabase_flutter: ^0.1.0 copied to clipboard
Flutter bindings for Vasabase, including deep linking, local storage, and app lifecycle management.
Vasabase Flutter SDK #
Flutter bindings for Vasabase, bringing the power of the Vasabase pure Dart SDK to mobile and web apps built with Flutter.
Features #
- Session Persistence: Automatically securely store and restore user sessions across app restarts using local storage.
- Deep Linking: Handle OAuth and magic link sign-ins effortlessly with native deep linking support.
- App Lifecycle Management: Automatically refresh sessions when the app comes back to the foreground.
Getting started #
dependencies:
vasabase_flutter: ^0.1.0
Usage #
import 'package:flutter/material.dart';
import 'package:vasabase_flutter/vasabase_flutter.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Vasabase.initialize(
url: 'https://api.vasabase.com',
anonKey: 'your-anon-key',
);
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text('Vasabase Flutter')),
body: Center(child: Text('Client configured!')),
),
);
}
}