VueJS3 App using Supabase V2.0
How to run the solution
npm install
npm run dev
To change the config settings go to the .env.local file and set the following
VITE_SUPAURL=xxxx
VITE_SUPAKEY=xxxx
To get VITE_SUPAURL and VITE_SUPAKEY you need to create a project from Supabase Dashboard.
You can create Google client from here by clicking Create Project.
You can create Azure client by following this.
When logging in Supabase gives us access_token and we keep it in the local storage. When user tries to do some private action, access token expiration date is being compared with the current date. If token is expired user is being redirected to login page and needs to login again.