remix-auth-supabase icon indicating copy to clipboard operation
remix-auth-supabase copied to clipboard

Property 'api' does not exist on type 'SupabaseAuthClient'

Open AnthonyLzq opened this issue 2 years ago • 5 comments

Describe the bug

The email-password example is not working. The supabaseClient.auth does not have an api property.

image

It may be related to the supabase version.

Your Example Website or App

https://github.com/mitchelvanbever/remix-auth-supabase/tree/main/examples/email-password

Steps to Reproduce the Bug or Issue

  1. Clone the repo
  2. cd to examples/email-password
  3. Update packages
  4. Run the project

Expected behavior

To work.

Screenshots or Videos

No response

Platform

  • OS: Manjaro Linux x86_64
  • Version: 4.0.2

Additional context

No response

AnthonyLzq avatar Dec 04 '22 04:12 AnthonyLzq

You probably use @supabase/[email protected]. This package is doesnt work for version 2. Try to install v1 to get it working for now until it is fixed. npm i @supabase/[email protected] pnpm add @supabase/[email protected]

0x0range avatar Dec 18 '22 01:12 0x0range

You probably use @supabase/[email protected]. This package is doesnt work for version 2. Try to install v1 to get it working for now until it is fixed. npm i @supabase/[email protected] pnpm add @supabase/[email protected]

Is this still the case that it doesn't work for V2?

greghesp avatar Jan 23 '23 12:01 greghesp

Hi is there any update on this issue? Would you be open to a pull request to update the library to support 2.0?

alrightsure avatar Jan 26 '24 21:01 alrightsure

Hi is there any update on this issue? Would you be open to a pull request to update the library to support 2.0?

At the time of writing this library is no longer the preferred way adding supabase auth to your application. If you start a new application please consider following the official supabase docs.

Having that said back when v2 just got released I've looked into getting the library to work but there were some roadblocks which would lead to breaking changes bringing me back to my previous point (following the official supabase docs).

mitchelvanbever avatar Jan 26 '24 22:01 mitchelvanbever

Hi is there any update on this issue? Would you be open to a pull request to update the library to support 2.0?

At the time of writing this library is no longer the preferred way adding supabase auth to your application. If you start a new application please consider following the official supabase docs.

Having that said back when v2 just got released I've looked into getting the library to work but there were some roadblocks which would lead to breaking changes bringing me back to my previous point (following the official supabase docs).

Got it, thanks for the quick reply!

alrightsure avatar Jan 26 '24 22:01 alrightsure