0 purchases
authentication chris
Authentication_HNG #
This is the authentication for hng just my personal test
Features #
Signup
Login
Reset Password
Logout
Getting started #
Just follow installation process
Usage #
example/lib/main.dart
import 'package:authentication/authentication.dart';
import 'package:flutter/material.dart';
class Signup extends StatelessWidget {
final Authentication auth = Authentication();
@override
Widget build(BuildContext context) {
return Scaffold(
body: ElevatedButton(
onPressed: () {
auth
.signUp('[email protected]', 'John Doe', 'password')
.then((responseData) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text('Successfully signed up: $responseData'),
duration: Duration(seconds: 2),
),
);
}).catchError((e) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(e.toString()),
duration: Duration(seconds: 2),
),
);
});
},
child: Text('Sign Up'),
),
);
}
}
copied to clipboard
Additional information #
YOu can contact us to get more information
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.