GithubHelp home page GithubHelp logo

Comments (3)

JOsacky avatar JOsacky commented on June 25, 2024

I am also running into this issue and users are not able to logout using the iOS client and instead throws an error because the response is a 403.

Force log outs only happen for 404s and 401s on the iOS client, perhaps updating the response to a 401 would make more sense

Here is the a reference to the swift supabase client code that throws
https://github.com/supabase/supabase-swift/blob/f1e17ee7ceef4e9da56c57fdd299fa1cf1641381/Sources/Auth/AuthClient.swift#L714-L723

Here is a photo of the error in the xcode debugger:
image

Edit: there has already been a PR to address this by force logging out from 403s.

supabase/supabase-swift@7c4e62b

from supabase.

otang avatar otang commented on June 25, 2024

I am experiencing the same issue

from supabase.

erasmusa avatar erasmusa commented on June 25, 2024

Hi there everyone,

I am currently having the same issue. I am developing a react-admin web application for internal usage. I use the 'ra-supabase' npm package. I host the app on Firebase but use the Supabase backend. I'm experiencing this error during the implementation of my "forgot password" workflow. The first step where I get the email with the link back to my app works 100%.

This link contains the needed parameters i.e. access_token (JWT) and the refresh_token. I pass these to the function provided by the useSetPassword hook. Behind the scenes it calls the setPassword method in the authProvider which in turn calls setSession which checks if the token had expired and if not tries to fetch the user by calling _getUser giving it the access_token.

It is this _getUser (/v1/user) call that eventually throws a 403 error and returning "AuthApiError: Session from session_id claim in JWT does not exist".

To me it looks like an issue on the Supabase API side. Any ideas?

from supabase.

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.