supabase-js icon indicating copy to clipboard operation
supabase-js copied to clipboard

{ "code": 400, "error_code": "validation_failed", "msg": "Unsupported logout scope \"window\"" }

Open YA9 opened this issue 1 year ago • 4 comments

Bug report

  • [X ] I confirm this is a bug with Supabase, not with my own application.
  • [X ] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

When I try supabase.auth.signOut(), on version 2.43.3 on JS, I get this error: { "code": 400, "error_code": "validation_failed", "msg": "Unsupported logout scope "window"" }

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. In a deployed production environment only, when I run supabase.auth.signOut(), I get the error above. In development, before compiling, it works fine.
  2. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

image

System information

  • OS: [macOS, Windows]
  • Browser (if applies) [chrome]
  • Version of supabase-js: [2.43.3]

YA9 avatar Jun 20 '24 16:06 YA9