Giter Site home page Giter Site logo

Comments (10)

dshukertjr avatar dshukertjr commented on August 28, 2024 2

Thank you @chimon2000 for reporting this issue.

This bug seems to be related to supabase/auth#141, where upon verifying via OTP, user object is not being returned from the server.

from gotrue-dart.

dshukertjr avatar dshukertjr commented on August 28, 2024 1

@chimon2000
Yeah, this is not a bug on the client side, but on the server side. Unfortunately at the moment, it looks like we would have to wait for the issue on the server side to get resolved.

from gotrue-dart.

bdlukaa avatar bdlukaa commented on August 28, 2024

Can you try to call SupabaseAuth.instance.auth.user?

from gotrue-dart.

chimon2000 avatar chimon2000 commented on August 28, 2024

Can you try to call SupabaseAuth.instance.auth.user?

When attempting to reference the user value either from the auth instance or the session it was coming back as null.

@bdlukaa

from gotrue-dart.

neerajdana996 avatar neerajdana996 commented on August 28, 2024

any update on this ??

from gotrue-dart.

dshukertjr avatar dshukertjr commented on August 28, 2024

@Neerajdana
This issue is cause by supabase/auth#141 so unfortunately no updates at the moment.

from gotrue-dart.

bdlukaa avatar bdlukaa commented on August 28, 2024

supabase/auth#141 (comment)

from gotrue-dart.

MisterJimson avatar MisterJimson commented on August 28, 2024

So based on the last comment linked above, should the Supabase clients internally call GET /user in verifyOTP so the users of the client libraries don't need to work around the issue?

from gotrue-dart.

bdlukaa avatar bdlukaa commented on August 28, 2024

According to supabase/auth#141 (comment), #53 should fix this issue, no?


Edit: actually no. This issue is being caused because we check if the user is not null.

https://github.com/supabase-community/gotrue-dart/blob/main/lib/src/gotrue_client.dart#L315-L320

The same seems to happen in the js equivalent package:

https://github.com/supabase/gotrue-js/blob/master/src/GoTrueClient.ts#L635-L638

from gotrue-dart.

bdlukaa avatar bdlukaa commented on August 28, 2024

It looks like this is back on the latest master:

I/flutter ( 9428): ***** Supabase init completed Instance of 'Supabase'
I/flutter ( 9428): Current session is missing data.

from gotrue-dart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.