appstitch_auth

Last updated:

0 purchases

appstitch_auth Image
appstitch_auth Images
Add to Cart

Description:

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.