filmov
tv
Vue 3 Authentication With Supabase - FULL TUTORIAL (Login, Sign Up, Logout, Protected Routes)
![preview_player](https://i.ytimg.com/vi/TXaL_S0TDSg/maxresdefault.jpg)
Показать описание
Account authentication in Vue 3 can be simple! Using Supabase, we create an application that let's a user sign up, login, logout, check their current session, and protect routes from unauthorized users.
We use a form and connect inputs using v-model, create a supabase client, create a supabase account for our Vue 3 application, and then create auth functionality for our user.
At the end we show how add meta data to your supabase user accounts and how to protect routes using Vue Router and Supabase.
0:00 - What we are building
0:50 - Understanding our application
3:37 - Creating functions/Connecting Inputs
6:42 - Create Supabase Account
8:25 - Create Supabase Client in App
12:10 - Create Sign Up Functionality
15:48 - Login and getSession Functionality
18:34 - Logout Functionality
20:38 - Introducing Protected Route and Metadata
21:20 - Adding Metadata to Accounts
24:24 - Creating a protected route/page
31:02 - Show User Email
32:55 - Review Application
34:17 - Sign Up for Free Course
**** Join Free Course Waitlist ****
**** Finished code ****
**** Get Starter Application to Follow Along ****
Create a folder then:
1. Copy into console:
2. cd or open the folder that is created
3. Copy into console: npm install
4. Start application: npm run dev
**** JavaScript API for Supabase Authentication ****
*** Professional Inquiries ***
We use a form and connect inputs using v-model, create a supabase client, create a supabase account for our Vue 3 application, and then create auth functionality for our user.
At the end we show how add meta data to your supabase user accounts and how to protect routes using Vue Router and Supabase.
0:00 - What we are building
0:50 - Understanding our application
3:37 - Creating functions/Connecting Inputs
6:42 - Create Supabase Account
8:25 - Create Supabase Client in App
12:10 - Create Sign Up Functionality
15:48 - Login and getSession Functionality
18:34 - Logout Functionality
20:38 - Introducing Protected Route and Metadata
21:20 - Adding Metadata to Accounts
24:24 - Creating a protected route/page
31:02 - Show User Email
32:55 - Review Application
34:17 - Sign Up for Free Course
**** Join Free Course Waitlist ****
**** Finished code ****
**** Get Starter Application to Follow Along ****
Create a folder then:
1. Copy into console:
2. cd or open the folder that is created
3. Copy into console: npm install
4. Start application: npm run dev
**** JavaScript API for Supabase Authentication ****
*** Professional Inquiries ***
Комментарии