FeatureFuel
15

SDK Support for Listing & Invalidating Auth Sessions

Source: supabase/supabase#34340 · opened by @nicokempe
Supabase's auth.sessions table contains valuable information about user sessions (such as IP, user agent, timestamps) that would be incredibly useful for developers building account security dashboards. However, due to internal restrictions on accessing the auth schema, developers are currently unable to: • Retrieve a list of their own active sessions from the frontend • Revoke a specific session (e.g. "Log out from Intel Mac OS X") • Build a UI similar to GitHub/Discord/Google's "Active sessions" views (Screenshot with the example of GitHub below) ![image]( Feature Proposal Add official support in Supabase's JavaScript SDK for: 1\. supabase.auth.listSessions() Returns a list of active sessions for the currently logged-in user. Suggested structure (based on actual schema): 2\. supabase.auth.revokeSession(sessionId: string) Revokes a specific session owned by the current user. This would funct…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests