Last updated:
0 purchases
appstitch auth
Appstitch Auth #
The most straight forward way to integrate user authentication into your flutter app
Platforms #
iOS
Android
Web
Usage #
Sign Up #
void signUp() async {
final authOptions = AuthOptions(
email: "[email protected]",
);
final result = await auth
.signUp(authOptions);
if (result.success!) {
// Let user knows they will recieve an email/SMS with a authentication code
} else {
// handle error
}
}
copied to clipboard
Sign In #
void signUp() async {
final authOptions = AuthOptions(
email: "[email protected]",
);
final result = await auth
.signIn(authOptions);
if (result.success!) {
// Let user knows they will recieve an email/SMS with a authentication code
} else {
// handle error
}
}
copied to clipboard
Confirm User #
void confirmUser() async {
final authOptions = AuthOptions(
code : "ABC123",
);
final result = await auth
.confirmUser(authOptions);
if (result.success!) {
// user authenticated
} else {
// handle error
}
}
copied to clipboard
Install #
appstitch_core: ^2.0.0-nullsafety.5
appstitch_auth: ^1.0.0
copied to clipboard
Initialize #
import 'package:appstitch_core/options.dart';
import 'package:appstitch_core/core.dart';
Core core = Core();
Auth auth = Auth();
@override
void initState() {
super.initState();
final options = Options(appstitchKey, clientID: clientID);
core.initialize(options);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.