Comments (4)
+1
In local development, I manually deleted/reset the database while still logged in, and thereafter could not log out using supabase.auth.signOut in the client.
It returned 403 forbidden every time.
Eventually, I cleared the session from LocalStorage in the browser.
from auth.
I too seem to be hitting this, feels like a recent change that caused it
from auth.
As a work around deleting the cookies for the site will logout the user
default function deleteAllCookies() {
var cookies = document.cookie; // Get all cookies as a single string
var allCookies = cookies.split(";"); // Split into individual cookies
for (var i = 0; i < allCookies.length; i++) {
var cookie = allCookies[i];
var eqPos = cookie.indexOf("="); // Find the first '='
var name = eqPos > -1 ? cookie.substring(0, eqPos) : cookie; // Extract the cookie name
document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"; // Set cookie to expire in the past
}
}
this is going to remove all cookies for the site by setting their expiry date into the past. This simply removes all cookies. One could also remove specifically the Supabase cookies. Can call this after deleting the user instead of the supabase.tuh.signOut().
from auth.
i am a admin account and i want delete a user from auth with supabase.auth.admin.deleteUser(id) and i can, but every account delete i am redirect to login
from auth.
Related Issues (20)
- Supabase Auth latest gotrue migration impossible to resync using Prisma migrate HOT 3
- AuthException(message: FormatException: Unexpected end of input (at character 1) HOT 3
- Anonymous account does not have permission on schema "public" despite having valid JWT with "authenticated" role HOT 2
- Supabase should be sending X-Supabase-API-Version in Access-Control-Allow-Headers HTTP header
- REST API documentation consistency improvements HOT 3
- Raising an exception on postgress via triggers doesn't send the message to the API response HOT 1
- Flow State Not Found HOT 4
- raw_app_meta_data not updated when setting password for 3rd-party authenticated users
- Prevent MFA factor hijacking HOT 3
- With email verification disabled in my project, email verification is still required in order to promote an anonymous user HOT 6
- Email Verification Not Reflected in Identities Table (and JWT) HOT 2
- docker image version of `supabase/auth` not updated HOT 1
- Invalid JWT if user signIn back via OTP after deleting his account HOT 7
- Auth fails to update user phone number under common conditions
- "Invalid Login Credientals" AuthApiError should have an error code HOT 4
- [mobile] Auth currentSession is null and client cannot recover from this state. HOT 2
- linkIdentity() does not work with React Native HOT 6
- JWT aud claim suddenly an array instead of string HOT 2
- inviteUserByEmail failing on certain instances on the Supabase platform HOT 4
- signInWithPassword does not return an error code when the login credentials are invalid HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auth.