Authentication and Navigation (Archived)
Learn how to add authentication and navigation to VideoGPTAI
This is the legacy documentation for our original platform, Cades. Our platform has evolved significantly since then to offer both app and website creation capabilities. Find the new documentation here.
Adding Authentication
Step 1: Authentication Setup
Let’s install the social_auth_btn_kit package to add pre-styled authentication buttons for a professional look:
Now prompt the following to add google sign in functionality:
Step 2: Settings Page
Let’s create a settings page, which will display the user’s profile information and provide a logout option. This page will be accessible from the home screen and give users control over their account settings.
Step 3: Loading State
Let’s create a loading state for the app to provide visual feedback during authentication:
Adding go_router Navigation
Using this prompt We were able to migrate the navigation stack of the project, to better manage any redirections for login checks, we want to protect pages that shouldn’t be accessible to user without login
Add a simple redirect logic to the onboarding screen