Persisting Authentication State - WPF + FIREBASE AUTHENTICATION #7

Опубликовано: 01 Октябрь 2024
на канале: SingletonSean
1,139
28

Learn how to persist Firebase Authentication state in a WPF application. Persisting authentication state allows users to stay logged in between sessions, such as when closing and re-opening the application.

In this video, we leverage built-in WPF settings files to persist Firebase Authentication state. When the user's authentication state changes, we save the authentication state to the settings file. Then when the user re-opens the application, we load the authentication state from the settings file, attempt to fresh the user's authentication, and act appropriately based on the user's authentication state.

Rolling your own authentication system is quite painful despite being beneficial in certain scenarios. Luckily, there are many third-party authentication providers that simplify authentication. That said, in this series, we will integrate a WPF application with Firebase Authentication to easily setup authentication and demonstrate the power of Firebase Authentication. Firebase Authentication is one of my favorite third-party authentication providers, as it is free, feature rich, and easy to integrate with.

🕗 Timestamps:
0:00 - Introduction
0:42 - Solution Diagram
1:59 - Saving Authentication State
7:40 - Loading Authentication State
12:01 - Initializing Authentication State on App Startup
15:49 - Testing Authentication Persistence
18:08 - Adding a Splash Screen
19:13 - Handling Initializing Failures
20:28 - Summary
22:28 - REVISION: Removing Expiration Time Check

📦 Source code: https://github.com/SingletonSean/secr...
🔁 Full playlist:    • WPF + Firebase Authentication  

🔗 Property changed snippet (propchange): https://singletonsean.s3.amazonaws.co...
🔗 Firebase Console: https://console.firebase.google.com/

🎉 Celebrate the channel members: https://members.seandodson.com
💎 Become a member:    / @singletonsean  
📝 Check out my blog: https://seandodson.com
🏆 Donate: https://www.paypal.com/biz/fund?id=UB...