All Projects β†’ polina-c β†’ flutter-auth-ui

polina-c / flutter-auth-ui

Licence: Apache-2.0 license
flutter-auth-ui is an authentication library for flutter web applications. It uses Firebase auth as security as a service (SECaaS) provider. It implements UI to register user, validate email, sign in, sign out, restore password, access firestore..

Programming Languages

dart
5743 projects
HTML
75241 projects

Projects that are alternatives of or similar to flutter-auth-ui

Messenger Ios Chat Swift Firestore
Messenger Clone - Real-time iOS Chat with Firebase Firestore written in Swift
Stars: ✭ 405 (+586.44%)
Mutual labels:  firebase-auth, firestore
Gatsby Theme Firebase
πŸ”₯ A Gatsby Theme for adding Firebase to your application.
Stars: ✭ 96 (+62.71%)
Mutual labels:  firebase-auth, firestore
Travelmantics
Firestore & firebase storage MVVM sample
Stars: ✭ 28 (-52.54%)
Mutual labels:  firebase-auth, firestore
oneroof
Learn about firebase crud operation authentication, animation
Stars: ✭ 15 (-74.58%)
Mutual labels:  firebase-auth, firestore
Next Blog Firestore
Example of blog built with React, Next.js, Firebase Firestore, Styled-Component, Mobx State Tree and other cool technologies
Stars: ✭ 219 (+271.19%)
Mutual labels:  firebase-auth, firestore
gatsby-firebase-starter
πŸ”₯ Starter Project / Boilerplate for Authentication and creating Dynamic pages from collections with Firebase and Gatsby.js.
Stars: ✭ 61 (+3.39%)
Mutual labels:  firebase-auth, firestore
The Road To React With Firebase
πŸ““The Road to React with Firebase: Your journey to build business applications with React and Firebase.
Stars: ✭ 82 (+38.98%)
Mutual labels:  firebase-auth, firestore
open-feedback
Open Feedback is an opened SaaS platform destined to organisers to gather feedback from users. OpenFeedback
Stars: ✭ 67 (+13.56%)
Mutual labels:  firebase-auth, firestore
Makeitso
This is the source code for Make It So, the sample app accompanying my blog post "Replicating the iOS Reminders App Using SwiftUI and Firebase"
Stars: ✭ 181 (+206.78%)
Mutual labels:  firebase-auth, firestore
Firebasecrud
Rich UI and animation flutter app backed by firebase
Stars: ✭ 121 (+105.08%)
Mutual labels:  firebase-auth, firestore
Flutter-firestore-auth
Flutter mobile app with firestore authentication including Email and Social auth.
Stars: ✭ 95 (+61.02%)
Mutual labels:  firebase-auth, firestore
whatsapp-clone-react
Build a WhatsApp Clone with React JS and FireBase.
Stars: ✭ 38 (-35.59%)
Mutual labels:  firebase-auth, firestore
firebase-tutorial
This repo contains the code for the youtube playlist about React.js and Firestore. Covered are setting up Firesore in a React-App and much more.
Stars: ✭ 33 (-44.07%)
Mutual labels:  firebase-auth, firestore
React Admin Firebase
A firebase data provider for the react-admin framework
Stars: ✭ 269 (+355.93%)
Mutual labels:  firebase-auth, firestore
voting system app
E-voting system based on blockchain technology, with ethereum, flutter/dart
Stars: ✭ 59 (+0%)
Mutual labels:  firebase-auth, firestore
Angular 4 Material Pos
POS written in Angular 4 with Angular Material UI
Stars: ✭ 54 (-8.47%)
Mutual labels:  firebase-auth, firestore
ChatApp
Chat app based on Firebase tools.
Stars: ✭ 88 (+49.15%)
Mutual labels:  firebase-auth, firestore
app
Source code of intencje.pl website and mobile/desktop apps based on Angular, Firebase, and Capacitor.
Stars: ✭ 12 (-79.66%)
Mutual labels:  firebase-auth, firestore
Firebase Php
Unofficial Firebase Admin SDK for PHP
Stars: ✭ 1,657 (+2708.47%)
Mutual labels:  firebase-auth, firestore
Angularfire Lite
⚑️ Lightweight library to use Firebase API πŸ”₯ with Angular
Stars: ✭ 245 (+315.25%)
Mutual labels:  firebase-auth, firestore

flutter-auth-ui (faui)

faui is an authentication UI for Flutter. It registers users with email and password using Firebase security as a service ( SECaaS ). The library provides UI to register user, validate email, sign in, sign out and restore password. Supports silent sign in and access to Firestore.

Demos

Sign in on application load

Sign in on button click

Custom layout and phrasing

Use token to access Firestore

Find the source code here

Links

Pub package

Demo source code

Package source code

Usage

Create Project in Firebase

If you want to test the library, use the demo project:

apiKey: "AIzaSyA3hshWKqeogfYiklVCCtDaWJW8TfgWgB4"

To create your own Firebase project:

  1. Sign in to firebase console https://console.firebase.google.com/
  2. Add, configure and open project
  3. In the project open tab "Authentication" and then tab "Sign-in Method"
  4. Click "Email/Password", set "Enable" and click "Save"
  5. Select "Project Settings" (gear icon)
  6. Copy your "Web API Key"

Set Dependency

Update pubspec.yaml to make sure your project references necessary packages:

dependencies:
  ...
  faui: <latest version>

Check <latest version> here.

Update Code

In the beginning of the method build of the widget that requires authentication (it should be stateful), add the code:

if (fauiUser == null) {
  return fauiBuildAuthScreen(
    onExit: this.setState((){...}),
    firebaseApiKey: "...",
  );
}

Import you need:

import 'package:faui/faui.dart';

Get user email:

fauiUser.email

Sign out:

fauiSignOut()

Silent sign-in:


// Before runApp:
WidgetsFlutterBinding.ensureInitialized();
await fauiTrySignInSilently(firebaseApiKey: '...');
...

// After sign in with dialog:
fauiSaveUserLocallyForSilentSignIn();

Custom Layout and Language

To customize UI and/or language, invoke fauiBuildCustomAuthScreen instead of fauiBuildAuthScreen.

See the demo for the details.

Use the Retrieved Token to Access Your Data to Firestore

Configure basic security rules for your Firestore database. Then utilize the class FauiDbAccess.

See the demo for the details.

Contribute

Run Tests

flutter pub run test

Meet Coding Style

We follow dart styling.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].