When you work with Firebase and Vue.js, you need to learn to manage asynchronous authentication events, so that the project can respond differently when users are logged in versus when they're logged out.
- [Instructor] So we have managed to log in the user … with our login form, however, … other than being in this meeting's route, … we don't know that we have a user … and that they've logged in. … It'd be nicer to sort of see some visual feedback. … So what I'll do is I'll go over to app.vue … and I'm going to add something right here … to make sure that when a user logs in … that we capture that information. … And that's going to be done through … a Firebase method called auth, … and then we can say whenever … the state of the authentication has changed. … So for example, … when a user logs in or when they log out … or whenever an authentication event takes place, … then we can do something. … And what we want to do is capture some information … from the database. … I'm going to call it user … 'cause that's usually the information … that we receive back from the database. … And then I'm going to make sure that that user exists, … and if that's the case, … then I will make the local variable called user …
- Adding Firebase
- Setting up authentication with Firebase
- Reading dynamics snapshots
- Creating dynamic routes
- Displaying checked-in users
- Updating records
- Searching for data
- Creating security rules
Skill Level Intermediate
Building Laravel and Vue.js Web Appswith Michael Sullivan2h 47m Intermediate
1. Preparing Your App
2. Firebase Authentication
3. The Firestore Database
4. Finishing Up Your App
Next steps1m 56s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.