Relative Content

Tag Archive for next.jsoauth-2.0supabasesupabase-databasesupabase-js

Supabase auth issue

I have a site where I want to have a button, for example, “Add Product,” and when clicked, it should trigger an OAuth login with Google and redirect the user to the /dashboard/create URL. Also, I have several protected pages like /dashboard, /dashboard/user/details, etc. I want that if a user tries to access one of these URLs, they should be prompted with the Google OAuth login screen. After logging in, they should be redirected to the URL they initially tried to access (e.g., if they tried to go to /dashboard/user, they should be logged in and land on that page). Currently, I don’t know how to achieve this because I’m always redirected to the homepage.

Supabase auth issue

I have a site where I want to have a button, for example, “Add Product,” and when clicked, it should trigger an OAuth login with Google and redirect the user to the /dashboard/create URL. Also, I have several protected pages like /dashboard, /dashboard/user/details, etc. I want that if a user tries to access one of these URLs, they should be prompted with the Google OAuth login screen. After logging in, they should be redirected to the URL they initially tried to access (e.g., if they tried to go to /dashboard/user, they should be logged in and land on that page). Currently, I don’t know how to achieve this because I’m always redirected to the homepage.

Supabase auth issue

I have a site where I want to have a button, for example, “Add Product,” and when clicked, it should trigger an OAuth login with Google and redirect the user to the /dashboard/create URL. Also, I have several protected pages like /dashboard, /dashboard/user/details, etc. I want that if a user tries to access one of these URLs, they should be prompted with the Google OAuth login screen. After logging in, they should be redirected to the URL they initially tried to access (e.g., if they tried to go to /dashboard/user, they should be logged in and land on that page). Currently, I don’t know how to achieve this because I’m always redirected to the homepage.

Supabase auth issue

I have a site where I want to have a button, for example, “Add Product,” and when clicked, it should trigger an OAuth login with Google and redirect the user to the /dashboard/create URL. Also, I have several protected pages like /dashboard, /dashboard/user/details, etc. I want that if a user tries to access one of these URLs, they should be prompted with the Google OAuth login screen. After logging in, they should be redirected to the URL they initially tried to access (e.g., if they tried to go to /dashboard/user, they should be logged in and land on that page). Currently, I don’t know how to achieve this because I’m always redirected to the homepage.

Supabase auth issue

I have a site where I want to have a button, for example, “Add Product,” and when clicked, it should trigger an OAuth login with Google and redirect the user to the /dashboard/create URL. Also, I have several protected pages like /dashboard, /dashboard/user/details, etc. I want that if a user tries to access one of these URLs, they should be prompted with the Google OAuth login screen. After logging in, they should be redirected to the URL they initially tried to access (e.g., if they tried to go to /dashboard/user, they should be logged in and land on that page). Currently, I don’t know how to achieve this because I’m always redirected to the homepage.

Supabase auth issue

I have a site where I want to have a button, for example, “Add Product,” and when clicked, it should trigger an OAuth login with Google and redirect the user to the /dashboard/create URL. Also, I have several protected pages like /dashboard, /dashboard/user/details, etc. I want that if a user tries to access one of these URLs, they should be prompted with the Google OAuth login screen. After logging in, they should be redirected to the URL they initially tried to access (e.g., if they tried to go to /dashboard/user, they should be logged in and land on that page). Currently, I don’t know how to achieve this because I’m always redirected to the homepage.

Supabase auth issue

I have a site where I want to have a button, for example, “Add Product,” and when clicked, it should trigger an OAuth login with Google and redirect the user to the /dashboard/create URL. Also, I have several protected pages like /dashboard, /dashboard/user/details, etc. I want that if a user tries to access one of these URLs, they should be prompted with the Google OAuth login screen. After logging in, they should be redirected to the URL they initially tried to access (e.g., if they tried to go to /dashboard/user, they should be logged in and land on that page). Currently, I don’t know how to achieve this because I’m always redirected to the homepage.