Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AnthonyLzq opened this issue Dec 4, 2022 · 5 comments
Open

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

AnthonyLzq opened this issue Dec 4, 2022 · 5 comments

Comments

@AnthonyLzq
Copy link

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

@0x0range
Copy link

You probably use @supabase/supabase-js@2.x.x. 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/supabase-js@1.35.7
pnpm add @supabase/supabase-js@1.35.7

@greghesp
Copy link

You probably use @supabase/supabase-js@2.x.x. 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/supabase-js@1.35.7 pnpm add @supabase/supabase-js@1.35.7

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

@alrightsure
Copy link

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

@mitchelvanbever
Copy link
Owner

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).

@alrightsure
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants