Skip to content

[Feature request]: A method to require requests to be authenticated #970

@sproctor

Description

@sproctor

General Info

  • I installed the latest version of Supabase Kt
  • I checked for similar feature requests

Feature request

If the session refresh fails, it's possible to send requests with the anon token by accident.

Usecase

It's very hard or impossible to distinguish between genuine permission issues and a request being sent with the anon token. It would be ideal to have a flag in the Postgrest feature install that would cause requests to fail with a unique exception when not authenticated.

This can be checked directly before sending the request, but that creates a race condition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions